├── .dockerignore ├── .gitignore ├── .travis.yml ├── .vscode ├── launch.json └── tasks.json ├── DShop.Services.Products.sln ├── Dockerfile ├── Dockerfile.multistage ├── Dockerfile.multistage.advanced ├── LICENSE ├── README.md ├── scripts ├── docker-build-local-multistage.sh ├── docker-build-local.sh ├── docker-publish.sh ├── dotnet-build-local.sh ├── dotnet-build.sh ├── dotnet-publish.sh └── dotnet-run.sh ├── src └── DShop.Services.Products │ ├── Controllers │ ├── BaseController.cs │ ├── HomeController.cs │ └── ProductsController.cs │ ├── DShop.Services.Products.csproj │ ├── Domain │ └── Product.cs │ ├── Dto │ ├── OrderDto.cs │ ├── OrderItemDto.cs │ └── ProductDto.cs │ ├── Handlers │ ├── BrowseProductsHandler.cs │ ├── CreateProductHandler.cs │ ├── DeleteProductHandler.cs │ ├── GetProductHandler.cs │ ├── ReleaseProductsHandler.cs │ ├── ReserveProductsHandler.cs │ └── UpdateProductHandler.cs │ ├── Messages │ ├── Commands │ │ ├── CreateProduct.cs │ │ ├── DeleteProduct.cs │ │ ├── ReleaseProducts.cs │ │ ├── ReserveProducts.cs │ │ └── UpdateProduct.cs │ └── Events │ │ ├── CreateProductRejected.cs │ │ ├── DeleteProductRejected.cs │ │ ├── ProductCreated.cs │ │ ├── ProductDeleted.cs │ │ ├── ProductUpdated.cs │ │ ├── ProductsReleased.cs │ │ ├── ProductsReserved.cs │ │ ├── ReleaseProductsRejected.cs │ │ ├── ReserveProductsRejected.cs │ │ └── UpdateProductRejected.cs │ ├── Program.cs │ ├── Properties │ └── launchSettings.json │ ├── Queries │ ├── BrowseProducts.cs │ └── GetProduct.cs │ ├── Repositories │ ├── IProductsRepository.cs │ └── ProductsRepository.cs │ ├── Startup.cs │ ├── appsettings.development.json │ ├── appsettings.docker.json │ ├── appsettings.json │ └── appsettings.production.json └── tests └── DShop.Services.Products.Tests ├── DShop.Services.Products.Tests.csproj └── Handlers └── CreateProductHandlerTests.cs /.dockerignore: -------------------------------------------------------------------------------- 1 | bin\ 2 | obj\ -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/.travis.yml -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/.vscode/tasks.json -------------------------------------------------------------------------------- /DShop.Services.Products.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/DShop.Services.Products.sln -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/Dockerfile -------------------------------------------------------------------------------- /Dockerfile.multistage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/Dockerfile.multistage -------------------------------------------------------------------------------- /Dockerfile.multistage.advanced: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/Dockerfile.multistage.advanced -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/README.md -------------------------------------------------------------------------------- /scripts/docker-build-local-multistage.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/scripts/docker-build-local-multistage.sh -------------------------------------------------------------------------------- /scripts/docker-build-local.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | docker build -t dshop.services.products:local . -------------------------------------------------------------------------------- /scripts/docker-publish.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/scripts/docker-publish.sh -------------------------------------------------------------------------------- /scripts/dotnet-build-local.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | dotnet build -------------------------------------------------------------------------------- /scripts/dotnet-build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/scripts/dotnet-build.sh -------------------------------------------------------------------------------- /scripts/dotnet-publish.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/scripts/dotnet-publish.sh -------------------------------------------------------------------------------- /scripts/dotnet-run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/scripts/dotnet-run.sh -------------------------------------------------------------------------------- /src/DShop.Services.Products/Controllers/BaseController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Controllers/BaseController.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Controllers/HomeController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Controllers/HomeController.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Controllers/ProductsController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Controllers/ProductsController.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/DShop.Services.Products.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/DShop.Services.Products.csproj -------------------------------------------------------------------------------- /src/DShop.Services.Products/Domain/Product.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Domain/Product.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Dto/OrderDto.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Dto/OrderDto.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Dto/OrderItemDto.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Dto/OrderItemDto.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Dto/ProductDto.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Dto/ProductDto.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Handlers/BrowseProductsHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Handlers/BrowseProductsHandler.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Handlers/CreateProductHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Handlers/CreateProductHandler.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Handlers/DeleteProductHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Handlers/DeleteProductHandler.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Handlers/GetProductHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Handlers/GetProductHandler.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Handlers/ReleaseProductsHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Handlers/ReleaseProductsHandler.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Handlers/ReserveProductsHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Handlers/ReserveProductsHandler.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Handlers/UpdateProductHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Handlers/UpdateProductHandler.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Messages/Commands/CreateProduct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Messages/Commands/CreateProduct.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Messages/Commands/DeleteProduct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Messages/Commands/DeleteProduct.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Messages/Commands/ReleaseProducts.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Messages/Commands/ReleaseProducts.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Messages/Commands/ReserveProducts.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Messages/Commands/ReserveProducts.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Messages/Commands/UpdateProduct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Messages/Commands/UpdateProduct.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Messages/Events/CreateProductRejected.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Messages/Events/CreateProductRejected.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Messages/Events/DeleteProductRejected.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Messages/Events/DeleteProductRejected.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Messages/Events/ProductCreated.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Messages/Events/ProductCreated.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Messages/Events/ProductDeleted.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Messages/Events/ProductDeleted.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Messages/Events/ProductUpdated.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Messages/Events/ProductUpdated.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Messages/Events/ProductsReleased.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Messages/Events/ProductsReleased.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Messages/Events/ProductsReserved.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Messages/Events/ProductsReserved.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Messages/Events/ReleaseProductsRejected.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Messages/Events/ReleaseProductsRejected.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Messages/Events/ReserveProductsRejected.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Messages/Events/ReserveProductsRejected.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Messages/Events/UpdateProductRejected.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Messages/Events/UpdateProductRejected.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Program.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Properties/launchSettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Properties/launchSettings.json -------------------------------------------------------------------------------- /src/DShop.Services.Products/Queries/BrowseProducts.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Queries/BrowseProducts.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Queries/GetProduct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Queries/GetProduct.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Repositories/IProductsRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Repositories/IProductsRepository.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Repositories/ProductsRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Repositories/ProductsRepository.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/Startup.cs -------------------------------------------------------------------------------- /src/DShop.Services.Products/appsettings.development.json: -------------------------------------------------------------------------------- 1 | { 2 | } -------------------------------------------------------------------------------- /src/DShop.Services.Products/appsettings.docker.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/appsettings.docker.json -------------------------------------------------------------------------------- /src/DShop.Services.Products/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/src/DShop.Services.Products/appsettings.json -------------------------------------------------------------------------------- /src/DShop.Services.Products/appsettings.production.json: -------------------------------------------------------------------------------- 1 | { 2 | } -------------------------------------------------------------------------------- /tests/DShop.Services.Products.Tests/DShop.Services.Products.Tests.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/tests/DShop.Services.Products.Tests/DShop.Services.Products.Tests.csproj -------------------------------------------------------------------------------- /tests/DShop.Services.Products.Tests/Handlers/CreateProductHandlerTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmentors/DNC-DShop.Services.Products/HEAD/tests/DShop.Services.Products.Tests/Handlers/CreateProductHandlerTests.cs --------------------------------------------------------------------------------