Skip to content

Commit

Permalink
feat: add getProductQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikoo-Asadnejad committed May 3, 2024
1 parent 6e5e47f commit f85d17f
Show file tree
Hide file tree
Showing 13 changed files with 42 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Src/Product.API/obj/rider.project.model.nuget.info
Original file line number Diff line number Diff line change
@@ -1 +1 @@
17088716062710207
17109444857679871
1 change: 0 additions & 1 deletion Src/Product.Application/Product.Application.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
<ItemGroup>
<Folder Include="Category\Commands" />
<Folder Include="Category\Queries" />
<Folder Include="Product\Queries" />
<Folder Include="Shared\Exceptions\" />
<Folder Include="Shared\Interfaces\" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
using MediatR;

namespace Product.Application.Product.Queries.GetProduct;

public record GetProductQuery(int Id) : IRequest<GetProductQueryResponse>;
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using MediatR;

namespace Product.Application.Product.Queries.GetProduct;

public class GetProductQueryHandler : IRequestHandler<GetProductQuery ,GetProductQueryResponse>
{
public Task<GetProductQueryResponse> Handle(GetProductQuery request, CancellationToken cancellationToken)
{
throw new NotImplementedException();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
namespace Product.Application.Product.Queries.GetProduct;
public class GetProductQueryResponse
{
public GetProductQueryResponse(string title , string subTitle , string description , string category)
{
Title = title;
SubTitle = subTitle;
Description = description;
Category = category;
}

public string Title { get; }
public string? SubTitle { get;}
public string? Description { get; }
public string Category { get; }

}
2 changes: 1 addition & 1 deletion Src/Product.Application/obj/rider.project.model.nuget.info
Original file line number Diff line number Diff line change
@@ -1 +1 @@
17109444019949048
17109444857660281
2 changes: 1 addition & 1 deletion Src/Product.Domain/obj/rider.project.model.nuget.info
Original file line number Diff line number Diff line change
@@ -1 +1 @@
17088716062584938
17109444857633001
Original file line number Diff line number Diff line change
@@ -1 +1 @@
17109439871574448
17109444857661896
2 changes: 1 addition & 1 deletion Src/Product.Ioc/obj/rider.project.model.nuget.info
Original file line number Diff line number Diff line change
@@ -1 +1 @@
17088716062591402
17109444857666370
2 changes: 1 addition & 1 deletion Tests/Product.Api.Tests/obj/rider.project.model.nuget.info
Original file line number Diff line number Diff line change
@@ -1 +1 @@
17088716063485879
17109444857986117
Original file line number Diff line number Diff line change
@@ -1 +1 @@
17088716063478327
17109444857993886
Original file line number Diff line number Diff line change
@@ -1 +1 @@
17088716063485559
17109444857992960
Original file line number Diff line number Diff line change
@@ -1 +1 @@
17088716063484379
17109444857995391

0 comments on commit f85d17f

Please sign in to comment.