├── .gitignore ├── LICENSE ├── Part1a ├── OnlineStore.Api │ ├── Controllers │ │ ├── CheckoutController.cs │ │ ├── HomeController.cs │ │ ├── ProductController.cs │ │ └── ShoppingCartController.cs │ ├── Extensions │ │ └── ControllerExtensions.cs │ ├── OnlineStore.Api.csproj │ ├── Program.cs │ ├── Properties │ │ └── launchSettings.json │ ├── Startup.cs │ ├── appsettings.Development.json │ └── appsettings.json ├── OnlineStore.DataAccess │ ├── IOrderRepository.cs │ ├── IServiceCollectionExtensions.cs │ ├── IShoppingCartRepository.cs │ ├── IStoreProductRepository.cs │ ├── Implementation │ │ ├── OrderRepository.cs │ │ ├── ShoppingCartRepository.cs │ │ └── StoreProductRepository.cs │ ├── OnlineStore.DataAccess.csproj │ └── RepositoryException.cs ├── OnlineStore.Model │ ├── OnlineStore.Model.csproj │ ├── Order.cs │ ├── OrderItem.cs │ ├── Product.cs │ ├── ShoppingCart.cs │ └── ShoppingCartItem.cs ├── OnlineStore.Services │ ├── CheckoutException.cs │ ├── ICheckoutService.cs │ ├── IProductService.cs │ ├── IServiceCollectionExtensions.cs │ ├── IShoppingCartService.cs │ ├── Implementation │ │ ├── CheckoutService.cs │ │ ├── ProductService.cs │ │ └── ShoppingCartService.cs │ ├── OnlineStore.Services.csproj │ └── ShoppingCartException.cs └── OnlineStore.sln ├── Part1b ├── Checkout.Application │ ├── Checkout.Application.csproj │ ├── Handlers │ │ ├── CreateOrderCommandHandler.cs │ │ └── MakePaymentCommandHandler.cs │ ├── Repositories │ │ ├── IOrderRepository.cs │ │ ├── OrderRepository.cs │ │ └── OrderRepositoryException.cs │ └── ServiceCollectionExtensions.cs ├── Checkout.Commands │ ├── Checkout.Commands.csproj │ ├── CreateOrderCommand.cs │ └── MakePaymentCommand.cs ├── Checkout.Model │ ├── Checkout.Model.csproj │ ├── Order.cs │ └── OrderItem.cs ├── Core.Model │ ├── CommandResponse.cs │ └── Core.Model.csproj ├── OnlineStore.Api │ ├── Controllers │ │ ├── CheckoutController.cs │ │ ├── HomeController.cs │ │ ├── ProductController.cs │ │ └── ShoppingCartController.cs │ ├── Extensions │ │ └── ControllerExtensions.cs │ ├── OnlineStore.Api.csproj │ ├── Program.cs │ ├── Properties │ │ └── launchSettings.json │ ├── Startup.cs │ ├── appsettings.Development.json │ └── appsettings.json ├── OnlineStore.sln ├── ShoppingCart.Application │ ├── Handlers │ │ ├── AddToCartCommandHandler.cs │ │ └── GetCartQueryHandler.cs │ ├── IServiceCollectionExtensions.cs │ ├── Repositories │ │ ├── IShoppingCartRepository.cs │ │ └── ShoppingCartRepository.cs │ └── ShoppingCart.Application.csproj ├── ShoppingCart.Commands │ ├── AddToCartCommand.cs │ ├── ClearCartCommand.cs │ ├── GetCartQuery.cs │ └── ShoppingCart.Commands.csproj ├── ShoppingCart.Model │ ├── ShoppingCart.Model.csproj │ ├── ShoppingCart.cs │ └── ShoppingCartItem.cs ├── Store.Application │ ├── Handlers │ │ └── GetStoreProductQueryHandler.cs │ ├── IServiceCollectionExtensions.cs │ ├── Repository │ │ ├── IStoreProductRepository.cs │ │ └── StoreProductRepository.cs │ └── Store.Application.csproj ├── Store.Commands │ ├── GetStoreProductQuery.cs │ └── Store.Commands.csproj └── Store.Model │ ├── Store.Model.csproj │ └── StoreProduct.cs ├── Part2 ├── Checkout.Application │ ├── Checkout.Application.csproj │ ├── Handlers │ │ ├── CreateOrderCommandHandler.cs │ │ └── MakePaymentCommandHandler.cs │ ├── Repositories │ │ ├── IOrderRepository.cs │ │ ├── OrderRepository.cs │ │ └── OrderRepositoryException.cs │ └── ServiceCollectionExtensions.cs ├── Checkout.Commands │ ├── Checkout.Commands.csproj │ ├── CreateOrderCommand.cs │ └── MakePaymentCommand.cs ├── Checkout.Model │ ├── Checkout.Model.csproj │ ├── Order.cs │ └── OrderItem.cs ├── Core.Model │ ├── CommandResponse.cs │ ├── Core.Model.csproj │ └── IUserContextCommand.cs ├── OnlineStore.Api.Tests │ ├── Controllers │ │ └── AbstractCommandControllerShould.cs │ ├── OnlineStore.Api.Tests.csproj │ └── TestAssets │ │ └── SimpleCommand.cs ├── OnlineStore.Api │ ├── Binders │ │ ├── AuthenticatedUserIdAwareBodyModelBinder.cs │ │ └── AuthenticatedUserIdAwareBodyModelBinderProvider.cs │ ├── Controllers │ │ ├── AbstractCommandController.cs │ │ ├── CheckoutController.cs │ │ ├── HomeController.cs │ │ ├── ProductController.cs │ │ └── ShoppingCartController.cs │ ├── Extensions │ │ └── ControllerExtensions.cs │ ├── Filters │ │ └── AssignAuthenticatedUserIdActionFilter.cs │ ├── MetadataProviders │ │ └── AuthenticatedUserIdParameterModelConvention.cs │ ├── OnlineStore.Api.csproj │ ├── Program.cs │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ └── launchSettings.json │ ├── Startup.cs │ ├── Swagger │ │ ├── SwaggerAuthenticatedUserIdFilter.cs │ │ └── SwaggerAuthenticatedUserIdOperationFilter.cs │ ├── appsettings.Development.json │ └── appsettings.json ├── OnlineStore.sln ├── ShoppingCart.Application │ ├── Handlers │ │ ├── AddToCartCommandHandler.cs │ │ └── GetCartQueryHandler.cs │ ├── IServiceCollectionExtensions.cs │ ├── Repositories │ │ ├── IShoppingCartRepository.cs │ │ └── ShoppingCartRepository.cs │ └── ShoppingCart.Application.csproj ├── ShoppingCart.Commands │ ├── AddToCartCommand.cs │ ├── ClearCartCommand.cs │ ├── GetCartQuery.cs │ └── ShoppingCart.Commands.csproj ├── ShoppingCart.Model │ ├── ShoppingCart.Model.csproj │ ├── ShoppingCart.cs │ └── ShoppingCartItem.cs ├── Store.Application │ ├── Handlers │ │ └── GetStoreProductQueryHandler.cs │ ├── IServiceCollectionExtensions.cs │ ├── Repository │ │ ├── IStoreProductRepository.cs │ │ └── StoreProductRepository.cs │ └── Store.Application.csproj ├── Store.Commands │ ├── GetStoreProductQuery.cs │ └── Store.Commands.csproj └── Store.Model │ ├── Store.Model.csproj │ └── StoreProduct.cs ├── Part3 ├── Checkout.Application │ ├── Checkout.Application.csproj │ ├── Handlers │ │ ├── CreateOrderCommandHandler.cs │ │ └── MakePaymentCommandHandler.cs │ ├── Repositories │ │ ├── IOrderRepository.cs │ │ ├── OrderRepository.cs │ │ └── OrderRepositoryException.cs │ └── ServiceCollectionExtensions.cs ├── Checkout.Commands │ ├── Checkout.Commands.csproj │ ├── CreateOrderCommand.cs │ └── MakePaymentCommand.cs ├── Checkout.Model │ ├── Checkout.Model.csproj │ ├── Order.cs │ └── OrderItem.cs ├── Checkout.Validation.Tests │ ├── Checkout.Validation.Tests.csproj │ └── MakePaymentCommandValidatorShould.cs ├── Checkout.Validation │ ├── AssemblyInfo.cs │ ├── Checkout.Validation.csproj │ ├── IServiceCollectionExtensions.cs │ └── MakePaymentCommandValidator.cs ├── Core.Model │ ├── ApplicationException.cs │ ├── CommandError.cs │ ├── CommandResponse.cs │ ├── Core.Model.csproj │ └── IUserContextCommand.cs ├── OnlineStore.Api.Tests │ ├── Controllers │ │ └── AbstractCommandControllerShould.cs │ ├── OnlineStore.Api.Tests.csproj │ └── TestAssets │ │ └── SimpleCommand.cs ├── OnlineStore.Api │ ├── Binders │ │ ├── AuthenticatedUserIdAwareBodyModelBinder.cs │ │ └── AuthenticatedUserIdAwareBodyModelBinderProvider.cs │ ├── Controllers │ │ ├── AbstractCommandController.cs │ │ ├── CheckoutController.cs │ │ ├── HomeController.cs │ │ ├── ProductController.cs │ │ └── ShoppingCartController.cs │ ├── Extensions │ │ ├── CommandResponseExtensions.cs │ │ └── ControllerExtensions.cs │ ├── Filters │ │ └── AssignAuthenticatedUserIdActionFilter.cs │ ├── MetadataProviders │ │ └── AuthenticatedUserIdParameterModelConvention.cs │ ├── OnlineStore.Api.csproj │ ├── Program.cs │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ └── launchSettings.json │ ├── Startup.cs │ ├── Swagger │ │ ├── SwaggerAuthenticatedUserIdFilter.cs │ │ └── SwaggerAuthenticatedUserIdOperationFilter.cs │ ├── appsettings.Development.json │ └── appsettings.json ├── OnlineStore.sln ├── ShoppingCart.Application │ ├── Handlers │ │ ├── AddToCartCommandHandler.cs │ │ └── GetCartQueryHandler.cs │ ├── IServiceCollectionExtensions.cs │ ├── Repositories │ │ ├── IShoppingCartRepository.cs │ │ └── ShoppingCartRepository.cs │ └── ShoppingCart.Application.csproj ├── ShoppingCart.Commands │ ├── AddToCartCommand.cs │ ├── ClearCartCommand.cs │ ├── GetCartQuery.cs │ └── ShoppingCart.Commands.csproj ├── ShoppingCart.Model │ ├── ShoppingCart.Model.csproj │ ├── ShoppingCart.cs │ └── ShoppingCartItem.cs ├── ShoppingCart.Validation.Tests │ ├── AddToCartCommandValidatorShould.cs │ └── ShoppingCart.Validation.Tests.csproj ├── ShoppingCart.Validation │ ├── AddToCartCommandValidator.cs │ ├── AssemblyInfo.cs │ ├── IServiceCollectionExtensions.cs │ └── ShoppingCart.Validation.csproj ├── Store.Application │ ├── Handlers │ │ └── GetStoreProductQueryHandler.cs │ ├── IServiceCollectionExtensions.cs │ ├── Repository │ │ ├── IStoreProductRepository.cs │ │ └── StoreProductRepository.cs │ └── Store.Application.csproj ├── Store.Commands │ ├── GetStoreProductQuery.cs │ └── Store.Commands.csproj ├── Store.Model │ ├── Store.Model.csproj │ └── StoreProduct.cs ├── Store.Validation.Tests │ ├── GetStoreProductQueryValidatorShould.cs │ └── Store.Validation.Tests.csproj └── Store.Validation │ ├── AssemblyInfo.cs │ ├── GetStoreProductQueryValidator.cs │ ├── IServiceCollectionExtensions.cs │ └── Store.Validation.csproj ├── Part4-decorator ├── Checkout.Application │ ├── Checkout.Application.csproj │ ├── Handlers │ │ ├── CreateOrderCommandHandler.cs │ │ └── MakePaymentCommandHandler.cs │ ├── Repositories │ │ ├── IOrderRepository.cs │ │ ├── OrderRepository.cs │ │ └── OrderRepositoryException.cs │ └── ServiceCollectionExtensions.cs ├── Checkout.Commands │ ├── Checkout.Commands.csproj │ ├── CreateOrderCommand.cs │ └── MakePaymentCommand.cs ├── Checkout.Model │ ├── Checkout.Model.csproj │ ├── Order.cs │ └── OrderItem.cs ├── Checkout.Validation.Tests │ ├── Checkout.Validation.Tests.csproj │ └── MakePaymentCommandValidatorShould.cs ├── Checkout.Validation │ ├── AssemblyInfo.cs │ ├── Checkout.Validation.csproj │ ├── IServiceCollectionExtensions.cs │ └── MakePaymentCommandValidator.cs ├── Core.Model │ ├── ApplicationException.cs │ ├── CommandError.cs │ ├── CommandResponse.cs │ ├── Core.Model.csproj │ ├── ILogAwareCommand.cs │ └── IUserContextCommand.cs ├── OnlineStore.Api.Tests │ ├── Commanding │ │ └── LoggingCommandDispatcherShould.cs │ ├── Controllers │ │ └── AbstractCommandControllerShould.cs │ ├── OnlineStore.Api.Tests.csproj │ └── TestAssets │ │ ├── SimpleCommand.cs │ │ └── TestLogger.cs ├── OnlineStore.Api │ ├── Binders │ │ ├── AuthenticatedUserIdAwareBodyModelBinder.cs │ │ └── AuthenticatedUserIdAwareBodyModelBinderProvider.cs │ ├── Commanding │ │ └── LoggingCommandDispatcher.cs │ ├── Controllers │ │ ├── AbstractCommandController.cs │ │ ├── CheckoutController.cs │ │ ├── HomeController.cs │ │ ├── ProductController.cs │ │ └── ShoppingCartController.cs │ ├── Exceptions │ │ └── DispatcherException.cs │ ├── Extensions │ │ ├── CommandResponseExtensions.cs │ │ ├── ControllerExtensions.cs │ │ └── DispatcherExceptionExtensions.cs │ ├── Filters │ │ └── AssignAuthenticatedUserIdActionFilter.cs │ ├── MetadataProviders │ │ └── AuthenticatedUserIdParameterModelConvention.cs │ ├── Metrics │ │ ├── IMetricCollector.cs │ │ ├── IMetricCollectorFactory.cs │ │ ├── MetricCollector.cs │ │ └── MetricCollectorFactory.cs │ ├── OnlineStore.Api.csproj │ ├── Program.cs │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ └── launchSettings.json │ ├── Startup.cs │ ├── Swagger │ │ ├── SwaggerAuthenticatedUserIdFilter.cs │ │ └── SwaggerAuthenticatedUserIdOperationFilter.cs │ ├── appsettings.Development.json │ └── appsettings.json ├── OnlineStore.sln ├── ShoppingCart.Application │ ├── Handlers │ │ ├── AddToCartCommandHandler.cs │ │ └── GetCartQueryHandler.cs │ ├── IServiceCollectionExtensions.cs │ ├── Repositories │ │ ├── IShoppingCartRepository.cs │ │ └── ShoppingCartRepository.cs │ └── ShoppingCart.Application.csproj ├── ShoppingCart.Commands │ ├── AddToCartCommand.cs │ ├── ClearCartCommand.cs │ ├── GetCartQuery.cs │ └── ShoppingCart.Commands.csproj ├── ShoppingCart.Model │ ├── ShoppingCart.Model.csproj │ ├── ShoppingCart.cs │ └── ShoppingCartItem.cs ├── ShoppingCart.Validation.Tests │ ├── AddToCartCommandValidatorShould.cs │ └── ShoppingCart.Validation.Tests.csproj ├── ShoppingCart.Validation │ ├── AddToCartCommandValidator.cs │ ├── AssemblyInfo.cs │ ├── IServiceCollectionExtensions.cs │ └── ShoppingCart.Validation.csproj ├── Store.Application │ ├── Handlers │ │ └── GetStoreProductQueryHandler.cs │ ├── IServiceCollectionExtensions.cs │ ├── Repository │ │ ├── IStoreProductRepository.cs │ │ └── StoreProductRepository.cs │ └── Store.Application.csproj ├── Store.Commands │ ├── GetStoreProductQuery.cs │ └── Store.Commands.csproj ├── Store.Model │ ├── Store.Model.csproj │ └── StoreProduct.cs ├── Store.Validation.Tests │ ├── GetStoreProductQueryValidatorShould.cs │ └── Store.Validation.Tests.csproj └── Store.Validation │ ├── AssemblyInfo.cs │ ├── GetStoreProductQueryValidator.cs │ ├── IServiceCollectionExtensions.cs │ └── Store.Validation.csproj ├── Part4-framework ├── Checkout.Application │ ├── Checkout.Application.csproj │ ├── Handlers │ │ ├── CreateOrderCommandHandler.cs │ │ └── MakePaymentCommandHandler.cs │ ├── Repositories │ │ ├── IOrderRepository.cs │ │ ├── OrderRepository.cs │ │ └── OrderRepositoryException.cs │ └── ServiceCollectionExtensions.cs ├── Checkout.Commands │ ├── Checkout.Commands.csproj │ ├── CreateOrderCommand.cs │ └── MakePaymentCommand.cs ├── Checkout.Model │ ├── Checkout.Model.csproj │ ├── Order.cs │ └── OrderItem.cs ├── Checkout.Validation.Tests │ ├── Checkout.Validation.Tests.csproj │ └── MakePaymentCommandValidatorShould.cs ├── Checkout.Validation │ ├── AssemblyInfo.cs │ ├── Checkout.Validation.csproj │ ├── IServiceCollectionExtensions.cs │ └── MakePaymentCommandValidator.cs ├── Core.Model │ ├── ApplicationException.cs │ ├── CommandError.cs │ ├── CommandResponse.cs │ ├── Core.Model.csproj │ └── IUserContextCommand.cs ├── OnlineStore.Api.Tests │ ├── Controllers │ │ └── AbstractCommandControllerShould.cs │ ├── OnlineStore.Api.Tests.csproj │ └── TestAssets │ │ └── SimpleCommand.cs ├── OnlineStore.Api │ ├── Binders │ │ ├── AuthenticatedUserIdAwareBodyModelBinder.cs │ │ └── AuthenticatedUserIdAwareBodyModelBinderProvider.cs │ ├── Commanding │ │ ├── AuditItemUserIdEnricher.cs │ │ ├── CommandExecutionExceptionHandler.cs │ │ ├── LoggingCommandExecutionAuditor.cs │ │ └── LoggingCommandPreDispatchAuditor.cs │ ├── Controllers │ │ ├── AbstractCommandController.cs │ │ ├── CheckoutController.cs │ │ ├── HomeController.cs │ │ ├── ProductController.cs │ │ └── ShoppingCartController.cs │ ├── Exceptions │ │ └── DispatcherException.cs │ ├── Extensions │ │ ├── CommandResponseExtensions.cs │ │ ├── ControllerExtensions.cs │ │ └── DispatcherExceptionExtensions.cs │ ├── Filters │ │ └── AssignAuthenticatedUserIdActionFilter.cs │ ├── MetadataProviders │ │ └── AuthenticatedUserIdParameterModelConvention.cs │ ├── Metrics │ │ ├── IMetricCollector.cs │ │ └── MetricCollector.cs │ ├── OnlineStore.Api.csproj │ ├── Program.cs │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ └── launchSettings.json │ ├── Startup.cs │ ├── Swagger │ │ ├── SwaggerAuthenticatedUserIdFilter.cs │ │ └── SwaggerAuthenticatedUserIdOperationFilter.cs │ ├── appsettings.Development.json │ └── appsettings.json ├── OnlineStore.sln ├── ShoppingCart.Application │ ├── Handlers │ │ ├── AddToCartCommandHandler.cs │ │ └── GetCartQueryHandler.cs │ ├── IServiceCollectionExtensions.cs │ ├── Repositories │ │ ├── IShoppingCartRepository.cs │ │ └── ShoppingCartRepository.cs │ └── ShoppingCart.Application.csproj ├── ShoppingCart.Commands │ ├── AddToCartCommand.cs │ ├── ClearCartCommand.cs │ ├── GetCartQuery.cs │ └── ShoppingCart.Commands.csproj ├── ShoppingCart.Model │ ├── ShoppingCart.Model.csproj │ ├── ShoppingCart.cs │ └── ShoppingCartItem.cs ├── ShoppingCart.Validation.Tests │ ├── AddToCartCommandValidatorShould.cs │ └── ShoppingCart.Validation.Tests.csproj ├── ShoppingCart.Validation │ ├── AddToCartCommandValidator.cs │ ├── AssemblyInfo.cs │ ├── IServiceCollectionExtensions.cs │ └── ShoppingCart.Validation.csproj ├── Store.Application │ ├── Handlers │ │ └── GetStoreProductQueryHandler.cs │ ├── IServiceCollectionExtensions.cs │ ├── Repository │ │ ├── IStoreProductRepository.cs │ │ └── StoreProductRepository.cs │ └── Store.Application.csproj ├── Store.Commands │ ├── GetStoreProductQuery.cs │ └── Store.Commands.csproj ├── Store.Model │ ├── Store.Model.csproj │ └── StoreProduct.cs ├── Store.Validation.Tests │ ├── GetStoreProductQueryValidatorShould.cs │ └── Store.Validation.Tests.csproj └── Store.Validation │ ├── AssemblyInfo.cs │ ├── GetStoreProductQueryValidator.cs │ ├── IServiceCollectionExtensions.cs │ └── Store.Validation.csproj └── Part5 ├── Checkout.Application ├── Checkout.Application.csproj ├── Handlers │ ├── CreateOrderCommandHandler.cs │ └── MakePaymentCommandHandler.cs ├── Repositories │ ├── IOrderRepository.cs │ ├── OrderRepository.cs │ └── OrderRepositoryException.cs └── ServiceCollectionExtensions.cs ├── Checkout.Commands ├── Checkout.Commands.csproj ├── CreateOrderCommand.cs └── MakePaymentCommand.cs ├── Checkout.Model ├── Checkout.Model.csproj ├── Order.cs └── OrderItem.cs ├── Checkout.Validation.Tests ├── Checkout.Validation.Tests.csproj └── MakePaymentCommandValidatorShould.cs ├── Checkout.Validation ├── AssemblyInfo.cs ├── Checkout.Validation.csproj ├── IServiceCollectionExtensions.cs └── MakePaymentCommandValidator.cs ├── Core.Commanding ├── Commanding │ ├── AuditItemUserIdEnricher.cs │ ├── CommandExecutionExceptionHandler.cs │ ├── LoggingCommandExecutionAuditor.cs │ └── LoggingCommandPreDispatchAuditor.cs ├── Core.Commanding.csproj ├── Exceptions │ └── DispatcherException.cs ├── IServiceCollectionExtensions.cs └── Metrics │ ├── IMetricCollector.cs │ └── MetricCollector.cs ├── Core.Model ├── ApplicationException.cs ├── CommandError.cs ├── CommandResponse.cs ├── Core.Model.csproj └── IUserContextCommand.cs ├── OnlineStore.Api.Tests ├── Controllers │ └── AbstractCommandControllerShould.cs ├── OnlineStore.Api.Tests.csproj └── TestAssets │ └── SimpleCommand.cs ├── OnlineStore.Api ├── Binders │ ├── AuthenticatedUserIdAwareBodyModelBinder.cs │ └── AuthenticatedUserIdAwareBodyModelBinderProvider.cs ├── Controllers │ ├── AbstractCommandController.cs │ ├── CheckoutController.cs │ ├── HomeController.cs │ ├── ProductController.cs │ └── ShoppingCartController.cs ├── Extensions │ ├── CommandResponseExtensions.cs │ ├── ControllerExtensions.cs │ └── DispatcherExceptionExtensions.cs ├── Filters │ └── AssignAuthenticatedUserIdActionFilter.cs ├── MetadataProviders │ └── AuthenticatedUserIdParameterModelConvention.cs ├── OnlineStore.Api.csproj ├── Program.cs ├── Properties │ ├── AssemblyInfo.cs │ └── launchSettings.json ├── Startup.cs ├── Swagger │ ├── SwaggerAuthenticatedUserIdFilter.cs │ └── SwaggerAuthenticatedUserIdOperationFilter.cs ├── appsettings.Development.json └── appsettings.json ├── OnlineStore.sln ├── ShoppingCart.Application ├── Handlers │ ├── AddToCartCommandHandler.cs │ └── GetCartQueryHandler.cs ├── IServiceCollectionExtensions.cs ├── Repositories │ ├── IShoppingCartRepository.cs │ └── ShoppingCartRepository.cs └── ShoppingCart.Application.csproj ├── ShoppingCart.Commands ├── AddToCartCommand.cs ├── ClearCartCommand.cs ├── GetCartQuery.cs └── ShoppingCart.Commands.csproj ├── ShoppingCart.Model ├── ShoppingCart.Model.csproj ├── ShoppingCart.cs └── ShoppingCartItem.cs ├── ShoppingCart.Validation.Tests ├── AddToCartCommandValidatorShould.cs └── ShoppingCart.Validation.Tests.csproj ├── ShoppingCart.Validation ├── AddToCartCommandValidator.cs ├── AssemblyInfo.cs ├── IServiceCollectionExtensions.cs └── ShoppingCart.Validation.csproj ├── Store.Application ├── Handlers │ └── GetStoreProductQueryHandler.cs ├── IServiceCollectionExtensions.cs ├── Repository │ ├── IStoreProductRepository.cs │ └── StoreProductRepository.cs └── Store.Application.csproj ├── Store.Commands ├── GetStoreProductQuery.cs └── Store.Commands.csproj ├── Store.Functions ├── .gitignore ├── GetStoreProduct.cs ├── Store.Functions.csproj └── host.json ├── Store.Model ├── Store.Model.csproj └── StoreProduct.cs ├── Store.Validation.Tests ├── GetStoreProductQueryValidatorShould.cs └── Store.Validation.Tests.csproj └── Store.Validation ├── AssemblyInfo.cs ├── GetStoreProductQueryValidator.cs ├── IServiceCollectionExtensions.cs └── Store.Validation.csproj /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/LICENSE -------------------------------------------------------------------------------- /Part1a/OnlineStore.Api/Controllers/CheckoutController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.Api/Controllers/CheckoutController.cs -------------------------------------------------------------------------------- /Part1a/OnlineStore.Api/Controllers/HomeController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.Api/Controllers/HomeController.cs -------------------------------------------------------------------------------- /Part1a/OnlineStore.Api/Controllers/ProductController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.Api/Controllers/ProductController.cs -------------------------------------------------------------------------------- /Part1a/OnlineStore.Api/Controllers/ShoppingCartController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.Api/Controllers/ShoppingCartController.cs -------------------------------------------------------------------------------- /Part1a/OnlineStore.Api/Extensions/ControllerExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.Api/Extensions/ControllerExtensions.cs -------------------------------------------------------------------------------- /Part1a/OnlineStore.Api/OnlineStore.Api.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.Api/OnlineStore.Api.csproj -------------------------------------------------------------------------------- /Part1a/OnlineStore.Api/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.Api/Program.cs -------------------------------------------------------------------------------- /Part1a/OnlineStore.Api/Properties/launchSettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.Api/Properties/launchSettings.json -------------------------------------------------------------------------------- /Part1a/OnlineStore.Api/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.Api/Startup.cs -------------------------------------------------------------------------------- /Part1a/OnlineStore.Api/appsettings.Development.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.Api/appsettings.Development.json -------------------------------------------------------------------------------- /Part1a/OnlineStore.Api/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.Api/appsettings.json -------------------------------------------------------------------------------- /Part1a/OnlineStore.DataAccess/IOrderRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.DataAccess/IOrderRepository.cs -------------------------------------------------------------------------------- /Part1a/OnlineStore.DataAccess/IServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.DataAccess/IServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part1a/OnlineStore.DataAccess/IShoppingCartRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.DataAccess/IShoppingCartRepository.cs -------------------------------------------------------------------------------- /Part1a/OnlineStore.DataAccess/IStoreProductRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.DataAccess/IStoreProductRepository.cs -------------------------------------------------------------------------------- /Part1a/OnlineStore.DataAccess/Implementation/OrderRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.DataAccess/Implementation/OrderRepository.cs -------------------------------------------------------------------------------- /Part1a/OnlineStore.DataAccess/Implementation/ShoppingCartRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.DataAccess/Implementation/ShoppingCartRepository.cs -------------------------------------------------------------------------------- /Part1a/OnlineStore.DataAccess/Implementation/StoreProductRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.DataAccess/Implementation/StoreProductRepository.cs -------------------------------------------------------------------------------- /Part1a/OnlineStore.DataAccess/OnlineStore.DataAccess.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.DataAccess/OnlineStore.DataAccess.csproj -------------------------------------------------------------------------------- /Part1a/OnlineStore.DataAccess/RepositoryException.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.DataAccess/RepositoryException.cs -------------------------------------------------------------------------------- /Part1a/OnlineStore.Model/OnlineStore.Model.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.Model/OnlineStore.Model.csproj -------------------------------------------------------------------------------- /Part1a/OnlineStore.Model/Order.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.Model/Order.cs -------------------------------------------------------------------------------- /Part1a/OnlineStore.Model/OrderItem.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.Model/OrderItem.cs -------------------------------------------------------------------------------- /Part1a/OnlineStore.Model/Product.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.Model/Product.cs -------------------------------------------------------------------------------- /Part1a/OnlineStore.Model/ShoppingCart.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.Model/ShoppingCart.cs -------------------------------------------------------------------------------- /Part1a/OnlineStore.Model/ShoppingCartItem.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.Model/ShoppingCartItem.cs -------------------------------------------------------------------------------- /Part1a/OnlineStore.Services/CheckoutException.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.Services/CheckoutException.cs -------------------------------------------------------------------------------- /Part1a/OnlineStore.Services/ICheckoutService.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.Services/ICheckoutService.cs -------------------------------------------------------------------------------- /Part1a/OnlineStore.Services/IProductService.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.Services/IProductService.cs -------------------------------------------------------------------------------- /Part1a/OnlineStore.Services/IServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.Services/IServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part1a/OnlineStore.Services/IShoppingCartService.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.Services/IShoppingCartService.cs -------------------------------------------------------------------------------- /Part1a/OnlineStore.Services/Implementation/CheckoutService.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.Services/Implementation/CheckoutService.cs -------------------------------------------------------------------------------- /Part1a/OnlineStore.Services/Implementation/ProductService.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.Services/Implementation/ProductService.cs -------------------------------------------------------------------------------- /Part1a/OnlineStore.Services/Implementation/ShoppingCartService.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.Services/Implementation/ShoppingCartService.cs -------------------------------------------------------------------------------- /Part1a/OnlineStore.Services/OnlineStore.Services.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.Services/OnlineStore.Services.csproj -------------------------------------------------------------------------------- /Part1a/OnlineStore.Services/ShoppingCartException.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.Services/ShoppingCartException.cs -------------------------------------------------------------------------------- /Part1a/OnlineStore.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1a/OnlineStore.sln -------------------------------------------------------------------------------- /Part1b/Checkout.Application/Checkout.Application.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/Checkout.Application/Checkout.Application.csproj -------------------------------------------------------------------------------- /Part1b/Checkout.Application/Handlers/CreateOrderCommandHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/Checkout.Application/Handlers/CreateOrderCommandHandler.cs -------------------------------------------------------------------------------- /Part1b/Checkout.Application/Handlers/MakePaymentCommandHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/Checkout.Application/Handlers/MakePaymentCommandHandler.cs -------------------------------------------------------------------------------- /Part1b/Checkout.Application/Repositories/IOrderRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/Checkout.Application/Repositories/IOrderRepository.cs -------------------------------------------------------------------------------- /Part1b/Checkout.Application/Repositories/OrderRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/Checkout.Application/Repositories/OrderRepository.cs -------------------------------------------------------------------------------- /Part1b/Checkout.Application/Repositories/OrderRepositoryException.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/Checkout.Application/Repositories/OrderRepositoryException.cs -------------------------------------------------------------------------------- /Part1b/Checkout.Application/ServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/Checkout.Application/ServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part1b/Checkout.Commands/Checkout.Commands.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/Checkout.Commands/Checkout.Commands.csproj -------------------------------------------------------------------------------- /Part1b/Checkout.Commands/CreateOrderCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/Checkout.Commands/CreateOrderCommand.cs -------------------------------------------------------------------------------- /Part1b/Checkout.Commands/MakePaymentCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/Checkout.Commands/MakePaymentCommand.cs -------------------------------------------------------------------------------- /Part1b/Checkout.Model/Checkout.Model.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/Checkout.Model/Checkout.Model.csproj -------------------------------------------------------------------------------- /Part1b/Checkout.Model/Order.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/Checkout.Model/Order.cs -------------------------------------------------------------------------------- /Part1b/Checkout.Model/OrderItem.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/Checkout.Model/OrderItem.cs -------------------------------------------------------------------------------- /Part1b/Core.Model/CommandResponse.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/Core.Model/CommandResponse.cs -------------------------------------------------------------------------------- /Part1b/Core.Model/Core.Model.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/Core.Model/Core.Model.csproj -------------------------------------------------------------------------------- /Part1b/OnlineStore.Api/Controllers/CheckoutController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/OnlineStore.Api/Controllers/CheckoutController.cs -------------------------------------------------------------------------------- /Part1b/OnlineStore.Api/Controllers/HomeController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/OnlineStore.Api/Controllers/HomeController.cs -------------------------------------------------------------------------------- /Part1b/OnlineStore.Api/Controllers/ProductController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/OnlineStore.Api/Controllers/ProductController.cs -------------------------------------------------------------------------------- /Part1b/OnlineStore.Api/Controllers/ShoppingCartController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/OnlineStore.Api/Controllers/ShoppingCartController.cs -------------------------------------------------------------------------------- /Part1b/OnlineStore.Api/Extensions/ControllerExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/OnlineStore.Api/Extensions/ControllerExtensions.cs -------------------------------------------------------------------------------- /Part1b/OnlineStore.Api/OnlineStore.Api.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/OnlineStore.Api/OnlineStore.Api.csproj -------------------------------------------------------------------------------- /Part1b/OnlineStore.Api/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/OnlineStore.Api/Program.cs -------------------------------------------------------------------------------- /Part1b/OnlineStore.Api/Properties/launchSettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/OnlineStore.Api/Properties/launchSettings.json -------------------------------------------------------------------------------- /Part1b/OnlineStore.Api/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/OnlineStore.Api/Startup.cs -------------------------------------------------------------------------------- /Part1b/OnlineStore.Api/appsettings.Development.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/OnlineStore.Api/appsettings.Development.json -------------------------------------------------------------------------------- /Part1b/OnlineStore.Api/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/OnlineStore.Api/appsettings.json -------------------------------------------------------------------------------- /Part1b/OnlineStore.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/OnlineStore.sln -------------------------------------------------------------------------------- /Part1b/ShoppingCart.Application/Handlers/AddToCartCommandHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/ShoppingCart.Application/Handlers/AddToCartCommandHandler.cs -------------------------------------------------------------------------------- /Part1b/ShoppingCart.Application/Handlers/GetCartQueryHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/ShoppingCart.Application/Handlers/GetCartQueryHandler.cs -------------------------------------------------------------------------------- /Part1b/ShoppingCart.Application/IServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/ShoppingCart.Application/IServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part1b/ShoppingCart.Application/Repositories/IShoppingCartRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/ShoppingCart.Application/Repositories/IShoppingCartRepository.cs -------------------------------------------------------------------------------- /Part1b/ShoppingCart.Application/Repositories/ShoppingCartRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/ShoppingCart.Application/Repositories/ShoppingCartRepository.cs -------------------------------------------------------------------------------- /Part1b/ShoppingCart.Application/ShoppingCart.Application.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/ShoppingCart.Application/ShoppingCart.Application.csproj -------------------------------------------------------------------------------- /Part1b/ShoppingCart.Commands/AddToCartCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/ShoppingCart.Commands/AddToCartCommand.cs -------------------------------------------------------------------------------- /Part1b/ShoppingCart.Commands/ClearCartCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/ShoppingCart.Commands/ClearCartCommand.cs -------------------------------------------------------------------------------- /Part1b/ShoppingCart.Commands/GetCartQuery.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/ShoppingCart.Commands/GetCartQuery.cs -------------------------------------------------------------------------------- /Part1b/ShoppingCart.Commands/ShoppingCart.Commands.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/ShoppingCart.Commands/ShoppingCart.Commands.csproj -------------------------------------------------------------------------------- /Part1b/ShoppingCart.Model/ShoppingCart.Model.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/ShoppingCart.Model/ShoppingCart.Model.csproj -------------------------------------------------------------------------------- /Part1b/ShoppingCart.Model/ShoppingCart.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/ShoppingCart.Model/ShoppingCart.cs -------------------------------------------------------------------------------- /Part1b/ShoppingCart.Model/ShoppingCartItem.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/ShoppingCart.Model/ShoppingCartItem.cs -------------------------------------------------------------------------------- /Part1b/Store.Application/Handlers/GetStoreProductQueryHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/Store.Application/Handlers/GetStoreProductQueryHandler.cs -------------------------------------------------------------------------------- /Part1b/Store.Application/IServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/Store.Application/IServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part1b/Store.Application/Repository/IStoreProductRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/Store.Application/Repository/IStoreProductRepository.cs -------------------------------------------------------------------------------- /Part1b/Store.Application/Repository/StoreProductRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/Store.Application/Repository/StoreProductRepository.cs -------------------------------------------------------------------------------- /Part1b/Store.Application/Store.Application.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/Store.Application/Store.Application.csproj -------------------------------------------------------------------------------- /Part1b/Store.Commands/GetStoreProductQuery.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/Store.Commands/GetStoreProductQuery.cs -------------------------------------------------------------------------------- /Part1b/Store.Commands/Store.Commands.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/Store.Commands/Store.Commands.csproj -------------------------------------------------------------------------------- /Part1b/Store.Model/Store.Model.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/Store.Model/Store.Model.csproj -------------------------------------------------------------------------------- /Part1b/Store.Model/StoreProduct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part1b/Store.Model/StoreProduct.cs -------------------------------------------------------------------------------- /Part2/Checkout.Application/Checkout.Application.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/Checkout.Application/Checkout.Application.csproj -------------------------------------------------------------------------------- /Part2/Checkout.Application/Handlers/CreateOrderCommandHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/Checkout.Application/Handlers/CreateOrderCommandHandler.cs -------------------------------------------------------------------------------- /Part2/Checkout.Application/Handlers/MakePaymentCommandHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/Checkout.Application/Handlers/MakePaymentCommandHandler.cs -------------------------------------------------------------------------------- /Part2/Checkout.Application/Repositories/IOrderRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/Checkout.Application/Repositories/IOrderRepository.cs -------------------------------------------------------------------------------- /Part2/Checkout.Application/Repositories/OrderRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/Checkout.Application/Repositories/OrderRepository.cs -------------------------------------------------------------------------------- /Part2/Checkout.Application/Repositories/OrderRepositoryException.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/Checkout.Application/Repositories/OrderRepositoryException.cs -------------------------------------------------------------------------------- /Part2/Checkout.Application/ServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/Checkout.Application/ServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part2/Checkout.Commands/Checkout.Commands.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/Checkout.Commands/Checkout.Commands.csproj -------------------------------------------------------------------------------- /Part2/Checkout.Commands/CreateOrderCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/Checkout.Commands/CreateOrderCommand.cs -------------------------------------------------------------------------------- /Part2/Checkout.Commands/MakePaymentCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/Checkout.Commands/MakePaymentCommand.cs -------------------------------------------------------------------------------- /Part2/Checkout.Model/Checkout.Model.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/Checkout.Model/Checkout.Model.csproj -------------------------------------------------------------------------------- /Part2/Checkout.Model/Order.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/Checkout.Model/Order.cs -------------------------------------------------------------------------------- /Part2/Checkout.Model/OrderItem.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/Checkout.Model/OrderItem.cs -------------------------------------------------------------------------------- /Part2/Core.Model/CommandResponse.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/Core.Model/CommandResponse.cs -------------------------------------------------------------------------------- /Part2/Core.Model/Core.Model.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/Core.Model/Core.Model.csproj -------------------------------------------------------------------------------- /Part2/Core.Model/IUserContextCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/Core.Model/IUserContextCommand.cs -------------------------------------------------------------------------------- /Part2/OnlineStore.Api.Tests/Controllers/AbstractCommandControllerShould.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/OnlineStore.Api.Tests/Controllers/AbstractCommandControllerShould.cs -------------------------------------------------------------------------------- /Part2/OnlineStore.Api.Tests/OnlineStore.Api.Tests.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/OnlineStore.Api.Tests/OnlineStore.Api.Tests.csproj -------------------------------------------------------------------------------- /Part2/OnlineStore.Api.Tests/TestAssets/SimpleCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/OnlineStore.Api.Tests/TestAssets/SimpleCommand.cs -------------------------------------------------------------------------------- /Part2/OnlineStore.Api/Binders/AuthenticatedUserIdAwareBodyModelBinder.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/OnlineStore.Api/Binders/AuthenticatedUserIdAwareBodyModelBinder.cs -------------------------------------------------------------------------------- /Part2/OnlineStore.Api/Binders/AuthenticatedUserIdAwareBodyModelBinderProvider.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/OnlineStore.Api/Binders/AuthenticatedUserIdAwareBodyModelBinderProvider.cs -------------------------------------------------------------------------------- /Part2/OnlineStore.Api/Controllers/AbstractCommandController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/OnlineStore.Api/Controllers/AbstractCommandController.cs -------------------------------------------------------------------------------- /Part2/OnlineStore.Api/Controllers/CheckoutController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/OnlineStore.Api/Controllers/CheckoutController.cs -------------------------------------------------------------------------------- /Part2/OnlineStore.Api/Controllers/HomeController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/OnlineStore.Api/Controllers/HomeController.cs -------------------------------------------------------------------------------- /Part2/OnlineStore.Api/Controllers/ProductController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/OnlineStore.Api/Controllers/ProductController.cs -------------------------------------------------------------------------------- /Part2/OnlineStore.Api/Controllers/ShoppingCartController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/OnlineStore.Api/Controllers/ShoppingCartController.cs -------------------------------------------------------------------------------- /Part2/OnlineStore.Api/Extensions/ControllerExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/OnlineStore.Api/Extensions/ControllerExtensions.cs -------------------------------------------------------------------------------- /Part2/OnlineStore.Api/Filters/AssignAuthenticatedUserIdActionFilter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/OnlineStore.Api/Filters/AssignAuthenticatedUserIdActionFilter.cs -------------------------------------------------------------------------------- /Part2/OnlineStore.Api/MetadataProviders/AuthenticatedUserIdParameterModelConvention.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/OnlineStore.Api/MetadataProviders/AuthenticatedUserIdParameterModelConvention.cs -------------------------------------------------------------------------------- /Part2/OnlineStore.Api/OnlineStore.Api.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/OnlineStore.Api/OnlineStore.Api.csproj -------------------------------------------------------------------------------- /Part2/OnlineStore.Api/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/OnlineStore.Api/Program.cs -------------------------------------------------------------------------------- /Part2/OnlineStore.Api/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.CompilerServices; 2 | 3 | [assembly: InternalsVisibleTo("OnlineStore.Api.Tests")] -------------------------------------------------------------------------------- /Part2/OnlineStore.Api/Properties/launchSettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/OnlineStore.Api/Properties/launchSettings.json -------------------------------------------------------------------------------- /Part2/OnlineStore.Api/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/OnlineStore.Api/Startup.cs -------------------------------------------------------------------------------- /Part2/OnlineStore.Api/Swagger/SwaggerAuthenticatedUserIdFilter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/OnlineStore.Api/Swagger/SwaggerAuthenticatedUserIdFilter.cs -------------------------------------------------------------------------------- /Part2/OnlineStore.Api/Swagger/SwaggerAuthenticatedUserIdOperationFilter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/OnlineStore.Api/Swagger/SwaggerAuthenticatedUserIdOperationFilter.cs -------------------------------------------------------------------------------- /Part2/OnlineStore.Api/appsettings.Development.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/OnlineStore.Api/appsettings.Development.json -------------------------------------------------------------------------------- /Part2/OnlineStore.Api/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/OnlineStore.Api/appsettings.json -------------------------------------------------------------------------------- /Part2/OnlineStore.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/OnlineStore.sln -------------------------------------------------------------------------------- /Part2/ShoppingCart.Application/Handlers/AddToCartCommandHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/ShoppingCart.Application/Handlers/AddToCartCommandHandler.cs -------------------------------------------------------------------------------- /Part2/ShoppingCart.Application/Handlers/GetCartQueryHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/ShoppingCart.Application/Handlers/GetCartQueryHandler.cs -------------------------------------------------------------------------------- /Part2/ShoppingCart.Application/IServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/ShoppingCart.Application/IServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part2/ShoppingCart.Application/Repositories/IShoppingCartRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/ShoppingCart.Application/Repositories/IShoppingCartRepository.cs -------------------------------------------------------------------------------- /Part2/ShoppingCart.Application/Repositories/ShoppingCartRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/ShoppingCart.Application/Repositories/ShoppingCartRepository.cs -------------------------------------------------------------------------------- /Part2/ShoppingCart.Application/ShoppingCart.Application.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/ShoppingCart.Application/ShoppingCart.Application.csproj -------------------------------------------------------------------------------- /Part2/ShoppingCart.Commands/AddToCartCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/ShoppingCart.Commands/AddToCartCommand.cs -------------------------------------------------------------------------------- /Part2/ShoppingCart.Commands/ClearCartCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/ShoppingCart.Commands/ClearCartCommand.cs -------------------------------------------------------------------------------- /Part2/ShoppingCart.Commands/GetCartQuery.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/ShoppingCart.Commands/GetCartQuery.cs -------------------------------------------------------------------------------- /Part2/ShoppingCart.Commands/ShoppingCart.Commands.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/ShoppingCart.Commands/ShoppingCart.Commands.csproj -------------------------------------------------------------------------------- /Part2/ShoppingCart.Model/ShoppingCart.Model.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/ShoppingCart.Model/ShoppingCart.Model.csproj -------------------------------------------------------------------------------- /Part2/ShoppingCart.Model/ShoppingCart.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/ShoppingCart.Model/ShoppingCart.cs -------------------------------------------------------------------------------- /Part2/ShoppingCart.Model/ShoppingCartItem.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/ShoppingCart.Model/ShoppingCartItem.cs -------------------------------------------------------------------------------- /Part2/Store.Application/Handlers/GetStoreProductQueryHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/Store.Application/Handlers/GetStoreProductQueryHandler.cs -------------------------------------------------------------------------------- /Part2/Store.Application/IServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/Store.Application/IServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part2/Store.Application/Repository/IStoreProductRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/Store.Application/Repository/IStoreProductRepository.cs -------------------------------------------------------------------------------- /Part2/Store.Application/Repository/StoreProductRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/Store.Application/Repository/StoreProductRepository.cs -------------------------------------------------------------------------------- /Part2/Store.Application/Store.Application.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/Store.Application/Store.Application.csproj -------------------------------------------------------------------------------- /Part2/Store.Commands/GetStoreProductQuery.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/Store.Commands/GetStoreProductQuery.cs -------------------------------------------------------------------------------- /Part2/Store.Commands/Store.Commands.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/Store.Commands/Store.Commands.csproj -------------------------------------------------------------------------------- /Part2/Store.Model/Store.Model.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/Store.Model/Store.Model.csproj -------------------------------------------------------------------------------- /Part2/Store.Model/StoreProduct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part2/Store.Model/StoreProduct.cs -------------------------------------------------------------------------------- /Part3/Checkout.Application/Checkout.Application.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Checkout.Application/Checkout.Application.csproj -------------------------------------------------------------------------------- /Part3/Checkout.Application/Handlers/CreateOrderCommandHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Checkout.Application/Handlers/CreateOrderCommandHandler.cs -------------------------------------------------------------------------------- /Part3/Checkout.Application/Handlers/MakePaymentCommandHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Checkout.Application/Handlers/MakePaymentCommandHandler.cs -------------------------------------------------------------------------------- /Part3/Checkout.Application/Repositories/IOrderRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Checkout.Application/Repositories/IOrderRepository.cs -------------------------------------------------------------------------------- /Part3/Checkout.Application/Repositories/OrderRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Checkout.Application/Repositories/OrderRepository.cs -------------------------------------------------------------------------------- /Part3/Checkout.Application/Repositories/OrderRepositoryException.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Checkout.Application/Repositories/OrderRepositoryException.cs -------------------------------------------------------------------------------- /Part3/Checkout.Application/ServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Checkout.Application/ServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part3/Checkout.Commands/Checkout.Commands.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Checkout.Commands/Checkout.Commands.csproj -------------------------------------------------------------------------------- /Part3/Checkout.Commands/CreateOrderCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Checkout.Commands/CreateOrderCommand.cs -------------------------------------------------------------------------------- /Part3/Checkout.Commands/MakePaymentCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Checkout.Commands/MakePaymentCommand.cs -------------------------------------------------------------------------------- /Part3/Checkout.Model/Checkout.Model.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Checkout.Model/Checkout.Model.csproj -------------------------------------------------------------------------------- /Part3/Checkout.Model/Order.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Checkout.Model/Order.cs -------------------------------------------------------------------------------- /Part3/Checkout.Model/OrderItem.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Checkout.Model/OrderItem.cs -------------------------------------------------------------------------------- /Part3/Checkout.Validation.Tests/Checkout.Validation.Tests.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Checkout.Validation.Tests/Checkout.Validation.Tests.csproj -------------------------------------------------------------------------------- /Part3/Checkout.Validation.Tests/MakePaymentCommandValidatorShould.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Checkout.Validation.Tests/MakePaymentCommandValidatorShould.cs -------------------------------------------------------------------------------- /Part3/Checkout.Validation/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.CompilerServices; 2 | 3 | [assembly: InternalsVisibleTo("Checkout.Validation.Tests")] 4 | -------------------------------------------------------------------------------- /Part3/Checkout.Validation/Checkout.Validation.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Checkout.Validation/Checkout.Validation.csproj -------------------------------------------------------------------------------- /Part3/Checkout.Validation/IServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Checkout.Validation/IServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part3/Checkout.Validation/MakePaymentCommandValidator.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Checkout.Validation/MakePaymentCommandValidator.cs -------------------------------------------------------------------------------- /Part3/Core.Model/ApplicationException.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Core.Model/ApplicationException.cs -------------------------------------------------------------------------------- /Part3/Core.Model/CommandError.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Core.Model/CommandError.cs -------------------------------------------------------------------------------- /Part3/Core.Model/CommandResponse.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Core.Model/CommandResponse.cs -------------------------------------------------------------------------------- /Part3/Core.Model/Core.Model.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Core.Model/Core.Model.csproj -------------------------------------------------------------------------------- /Part3/Core.Model/IUserContextCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Core.Model/IUserContextCommand.cs -------------------------------------------------------------------------------- /Part3/OnlineStore.Api.Tests/Controllers/AbstractCommandControllerShould.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/OnlineStore.Api.Tests/Controllers/AbstractCommandControllerShould.cs -------------------------------------------------------------------------------- /Part3/OnlineStore.Api.Tests/OnlineStore.Api.Tests.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/OnlineStore.Api.Tests/OnlineStore.Api.Tests.csproj -------------------------------------------------------------------------------- /Part3/OnlineStore.Api.Tests/TestAssets/SimpleCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/OnlineStore.Api.Tests/TestAssets/SimpleCommand.cs -------------------------------------------------------------------------------- /Part3/OnlineStore.Api/Binders/AuthenticatedUserIdAwareBodyModelBinder.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/OnlineStore.Api/Binders/AuthenticatedUserIdAwareBodyModelBinder.cs -------------------------------------------------------------------------------- /Part3/OnlineStore.Api/Binders/AuthenticatedUserIdAwareBodyModelBinderProvider.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/OnlineStore.Api/Binders/AuthenticatedUserIdAwareBodyModelBinderProvider.cs -------------------------------------------------------------------------------- /Part3/OnlineStore.Api/Controllers/AbstractCommandController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/OnlineStore.Api/Controllers/AbstractCommandController.cs -------------------------------------------------------------------------------- /Part3/OnlineStore.Api/Controllers/CheckoutController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/OnlineStore.Api/Controllers/CheckoutController.cs -------------------------------------------------------------------------------- /Part3/OnlineStore.Api/Controllers/HomeController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/OnlineStore.Api/Controllers/HomeController.cs -------------------------------------------------------------------------------- /Part3/OnlineStore.Api/Controllers/ProductController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/OnlineStore.Api/Controllers/ProductController.cs -------------------------------------------------------------------------------- /Part3/OnlineStore.Api/Controllers/ShoppingCartController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/OnlineStore.Api/Controllers/ShoppingCartController.cs -------------------------------------------------------------------------------- /Part3/OnlineStore.Api/Extensions/CommandResponseExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/OnlineStore.Api/Extensions/CommandResponseExtensions.cs -------------------------------------------------------------------------------- /Part3/OnlineStore.Api/Extensions/ControllerExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/OnlineStore.Api/Extensions/ControllerExtensions.cs -------------------------------------------------------------------------------- /Part3/OnlineStore.Api/Filters/AssignAuthenticatedUserIdActionFilter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/OnlineStore.Api/Filters/AssignAuthenticatedUserIdActionFilter.cs -------------------------------------------------------------------------------- /Part3/OnlineStore.Api/MetadataProviders/AuthenticatedUserIdParameterModelConvention.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/OnlineStore.Api/MetadataProviders/AuthenticatedUserIdParameterModelConvention.cs -------------------------------------------------------------------------------- /Part3/OnlineStore.Api/OnlineStore.Api.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/OnlineStore.Api/OnlineStore.Api.csproj -------------------------------------------------------------------------------- /Part3/OnlineStore.Api/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/OnlineStore.Api/Program.cs -------------------------------------------------------------------------------- /Part3/OnlineStore.Api/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.CompilerServices; 2 | 3 | [assembly: InternalsVisibleTo("OnlineStore.Api.Tests")] -------------------------------------------------------------------------------- /Part3/OnlineStore.Api/Properties/launchSettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/OnlineStore.Api/Properties/launchSettings.json -------------------------------------------------------------------------------- /Part3/OnlineStore.Api/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/OnlineStore.Api/Startup.cs -------------------------------------------------------------------------------- /Part3/OnlineStore.Api/Swagger/SwaggerAuthenticatedUserIdFilter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/OnlineStore.Api/Swagger/SwaggerAuthenticatedUserIdFilter.cs -------------------------------------------------------------------------------- /Part3/OnlineStore.Api/Swagger/SwaggerAuthenticatedUserIdOperationFilter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/OnlineStore.Api/Swagger/SwaggerAuthenticatedUserIdOperationFilter.cs -------------------------------------------------------------------------------- /Part3/OnlineStore.Api/appsettings.Development.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/OnlineStore.Api/appsettings.Development.json -------------------------------------------------------------------------------- /Part3/OnlineStore.Api/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/OnlineStore.Api/appsettings.json -------------------------------------------------------------------------------- /Part3/OnlineStore.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/OnlineStore.sln -------------------------------------------------------------------------------- /Part3/ShoppingCart.Application/Handlers/AddToCartCommandHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/ShoppingCart.Application/Handlers/AddToCartCommandHandler.cs -------------------------------------------------------------------------------- /Part3/ShoppingCart.Application/Handlers/GetCartQueryHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/ShoppingCart.Application/Handlers/GetCartQueryHandler.cs -------------------------------------------------------------------------------- /Part3/ShoppingCart.Application/IServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/ShoppingCart.Application/IServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part3/ShoppingCart.Application/Repositories/IShoppingCartRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/ShoppingCart.Application/Repositories/IShoppingCartRepository.cs -------------------------------------------------------------------------------- /Part3/ShoppingCart.Application/Repositories/ShoppingCartRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/ShoppingCart.Application/Repositories/ShoppingCartRepository.cs -------------------------------------------------------------------------------- /Part3/ShoppingCart.Application/ShoppingCart.Application.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/ShoppingCart.Application/ShoppingCart.Application.csproj -------------------------------------------------------------------------------- /Part3/ShoppingCart.Commands/AddToCartCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/ShoppingCart.Commands/AddToCartCommand.cs -------------------------------------------------------------------------------- /Part3/ShoppingCart.Commands/ClearCartCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/ShoppingCart.Commands/ClearCartCommand.cs -------------------------------------------------------------------------------- /Part3/ShoppingCart.Commands/GetCartQuery.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/ShoppingCart.Commands/GetCartQuery.cs -------------------------------------------------------------------------------- /Part3/ShoppingCart.Commands/ShoppingCart.Commands.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/ShoppingCart.Commands/ShoppingCart.Commands.csproj -------------------------------------------------------------------------------- /Part3/ShoppingCart.Model/ShoppingCart.Model.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/ShoppingCart.Model/ShoppingCart.Model.csproj -------------------------------------------------------------------------------- /Part3/ShoppingCart.Model/ShoppingCart.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/ShoppingCart.Model/ShoppingCart.cs -------------------------------------------------------------------------------- /Part3/ShoppingCart.Model/ShoppingCartItem.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/ShoppingCart.Model/ShoppingCartItem.cs -------------------------------------------------------------------------------- /Part3/ShoppingCart.Validation.Tests/AddToCartCommandValidatorShould.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/ShoppingCart.Validation.Tests/AddToCartCommandValidatorShould.cs -------------------------------------------------------------------------------- /Part3/ShoppingCart.Validation.Tests/ShoppingCart.Validation.Tests.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/ShoppingCart.Validation.Tests/ShoppingCart.Validation.Tests.csproj -------------------------------------------------------------------------------- /Part3/ShoppingCart.Validation/AddToCartCommandValidator.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/ShoppingCart.Validation/AddToCartCommandValidator.cs -------------------------------------------------------------------------------- /Part3/ShoppingCart.Validation/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.CompilerServices; 2 | 3 | [assembly: InternalsVisibleTo("ShoppingCart.Validation.Tests")] -------------------------------------------------------------------------------- /Part3/ShoppingCart.Validation/IServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/ShoppingCart.Validation/IServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part3/ShoppingCart.Validation/ShoppingCart.Validation.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/ShoppingCart.Validation/ShoppingCart.Validation.csproj -------------------------------------------------------------------------------- /Part3/Store.Application/Handlers/GetStoreProductQueryHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Store.Application/Handlers/GetStoreProductQueryHandler.cs -------------------------------------------------------------------------------- /Part3/Store.Application/IServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Store.Application/IServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part3/Store.Application/Repository/IStoreProductRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Store.Application/Repository/IStoreProductRepository.cs -------------------------------------------------------------------------------- /Part3/Store.Application/Repository/StoreProductRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Store.Application/Repository/StoreProductRepository.cs -------------------------------------------------------------------------------- /Part3/Store.Application/Store.Application.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Store.Application/Store.Application.csproj -------------------------------------------------------------------------------- /Part3/Store.Commands/GetStoreProductQuery.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Store.Commands/GetStoreProductQuery.cs -------------------------------------------------------------------------------- /Part3/Store.Commands/Store.Commands.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Store.Commands/Store.Commands.csproj -------------------------------------------------------------------------------- /Part3/Store.Model/Store.Model.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Store.Model/Store.Model.csproj -------------------------------------------------------------------------------- /Part3/Store.Model/StoreProduct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Store.Model/StoreProduct.cs -------------------------------------------------------------------------------- /Part3/Store.Validation.Tests/GetStoreProductQueryValidatorShould.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Store.Validation.Tests/GetStoreProductQueryValidatorShould.cs -------------------------------------------------------------------------------- /Part3/Store.Validation.Tests/Store.Validation.Tests.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Store.Validation.Tests/Store.Validation.Tests.csproj -------------------------------------------------------------------------------- /Part3/Store.Validation/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.CompilerServices; 2 | 3 | [assembly: InternalsVisibleTo("Store.Validation.Tests")] -------------------------------------------------------------------------------- /Part3/Store.Validation/GetStoreProductQueryValidator.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Store.Validation/GetStoreProductQueryValidator.cs -------------------------------------------------------------------------------- /Part3/Store.Validation/IServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Store.Validation/IServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part3/Store.Validation/Store.Validation.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part3/Store.Validation/Store.Validation.csproj -------------------------------------------------------------------------------- /Part4-decorator/Checkout.Application/Checkout.Application.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Checkout.Application/Checkout.Application.csproj -------------------------------------------------------------------------------- /Part4-decorator/Checkout.Application/Handlers/CreateOrderCommandHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Checkout.Application/Handlers/CreateOrderCommandHandler.cs -------------------------------------------------------------------------------- /Part4-decorator/Checkout.Application/Handlers/MakePaymentCommandHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Checkout.Application/Handlers/MakePaymentCommandHandler.cs -------------------------------------------------------------------------------- /Part4-decorator/Checkout.Application/Repositories/IOrderRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Checkout.Application/Repositories/IOrderRepository.cs -------------------------------------------------------------------------------- /Part4-decorator/Checkout.Application/Repositories/OrderRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Checkout.Application/Repositories/OrderRepository.cs -------------------------------------------------------------------------------- /Part4-decorator/Checkout.Application/Repositories/OrderRepositoryException.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Checkout.Application/Repositories/OrderRepositoryException.cs -------------------------------------------------------------------------------- /Part4-decorator/Checkout.Application/ServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Checkout.Application/ServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part4-decorator/Checkout.Commands/Checkout.Commands.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Checkout.Commands/Checkout.Commands.csproj -------------------------------------------------------------------------------- /Part4-decorator/Checkout.Commands/CreateOrderCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Checkout.Commands/CreateOrderCommand.cs -------------------------------------------------------------------------------- /Part4-decorator/Checkout.Commands/MakePaymentCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Checkout.Commands/MakePaymentCommand.cs -------------------------------------------------------------------------------- /Part4-decorator/Checkout.Model/Checkout.Model.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Checkout.Model/Checkout.Model.csproj -------------------------------------------------------------------------------- /Part4-decorator/Checkout.Model/Order.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Checkout.Model/Order.cs -------------------------------------------------------------------------------- /Part4-decorator/Checkout.Model/OrderItem.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Checkout.Model/OrderItem.cs -------------------------------------------------------------------------------- /Part4-decorator/Checkout.Validation.Tests/Checkout.Validation.Tests.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Checkout.Validation.Tests/Checkout.Validation.Tests.csproj -------------------------------------------------------------------------------- /Part4-decorator/Checkout.Validation.Tests/MakePaymentCommandValidatorShould.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Checkout.Validation.Tests/MakePaymentCommandValidatorShould.cs -------------------------------------------------------------------------------- /Part4-decorator/Checkout.Validation/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.CompilerServices; 2 | 3 | [assembly: InternalsVisibleTo("Checkout.Validation.Tests")] 4 | -------------------------------------------------------------------------------- /Part4-decorator/Checkout.Validation/Checkout.Validation.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Checkout.Validation/Checkout.Validation.csproj -------------------------------------------------------------------------------- /Part4-decorator/Checkout.Validation/IServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Checkout.Validation/IServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part4-decorator/Checkout.Validation/MakePaymentCommandValidator.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Checkout.Validation/MakePaymentCommandValidator.cs -------------------------------------------------------------------------------- /Part4-decorator/Core.Model/ApplicationException.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Core.Model/ApplicationException.cs -------------------------------------------------------------------------------- /Part4-decorator/Core.Model/CommandError.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Core.Model/CommandError.cs -------------------------------------------------------------------------------- /Part4-decorator/Core.Model/CommandResponse.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Core.Model/CommandResponse.cs -------------------------------------------------------------------------------- /Part4-decorator/Core.Model/Core.Model.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Core.Model/Core.Model.csproj -------------------------------------------------------------------------------- /Part4-decorator/Core.Model/ILogAwareCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Core.Model/ILogAwareCommand.cs -------------------------------------------------------------------------------- /Part4-decorator/Core.Model/IUserContextCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Core.Model/IUserContextCommand.cs -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api.Tests/Commanding/LoggingCommandDispatcherShould.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api.Tests/Commanding/LoggingCommandDispatcherShould.cs -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api.Tests/Controllers/AbstractCommandControllerShould.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api.Tests/Controllers/AbstractCommandControllerShould.cs -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api.Tests/OnlineStore.Api.Tests.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api.Tests/OnlineStore.Api.Tests.csproj -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api.Tests/TestAssets/SimpleCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api.Tests/TestAssets/SimpleCommand.cs -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api.Tests/TestAssets/TestLogger.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api.Tests/TestAssets/TestLogger.cs -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api/Binders/AuthenticatedUserIdAwareBodyModelBinder.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api/Binders/AuthenticatedUserIdAwareBodyModelBinder.cs -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api/Binders/AuthenticatedUserIdAwareBodyModelBinderProvider.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api/Binders/AuthenticatedUserIdAwareBodyModelBinderProvider.cs -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api/Commanding/LoggingCommandDispatcher.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api/Commanding/LoggingCommandDispatcher.cs -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api/Controllers/AbstractCommandController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api/Controllers/AbstractCommandController.cs -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api/Controllers/CheckoutController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api/Controllers/CheckoutController.cs -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api/Controllers/HomeController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api/Controllers/HomeController.cs -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api/Controllers/ProductController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api/Controllers/ProductController.cs -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api/Controllers/ShoppingCartController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api/Controllers/ShoppingCartController.cs -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api/Exceptions/DispatcherException.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api/Exceptions/DispatcherException.cs -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api/Extensions/CommandResponseExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api/Extensions/CommandResponseExtensions.cs -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api/Extensions/ControllerExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api/Extensions/ControllerExtensions.cs -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api/Extensions/DispatcherExceptionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api/Extensions/DispatcherExceptionExtensions.cs -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api/Filters/AssignAuthenticatedUserIdActionFilter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api/Filters/AssignAuthenticatedUserIdActionFilter.cs -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api/MetadataProviders/AuthenticatedUserIdParameterModelConvention.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api/MetadataProviders/AuthenticatedUserIdParameterModelConvention.cs -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api/Metrics/IMetricCollector.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api/Metrics/IMetricCollector.cs -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api/Metrics/IMetricCollectorFactory.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api/Metrics/IMetricCollectorFactory.cs -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api/Metrics/MetricCollector.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api/Metrics/MetricCollector.cs -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api/Metrics/MetricCollectorFactory.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api/Metrics/MetricCollectorFactory.cs -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api/OnlineStore.Api.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api/OnlineStore.Api.csproj -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api/Program.cs -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api/Properties/AssemblyInfo.cs -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api/Properties/launchSettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api/Properties/launchSettings.json -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api/Startup.cs -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api/Swagger/SwaggerAuthenticatedUserIdFilter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api/Swagger/SwaggerAuthenticatedUserIdFilter.cs -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api/Swagger/SwaggerAuthenticatedUserIdOperationFilter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api/Swagger/SwaggerAuthenticatedUserIdOperationFilter.cs -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api/appsettings.Development.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api/appsettings.Development.json -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.Api/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.Api/appsettings.json -------------------------------------------------------------------------------- /Part4-decorator/OnlineStore.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/OnlineStore.sln -------------------------------------------------------------------------------- /Part4-decorator/ShoppingCart.Application/Handlers/AddToCartCommandHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/ShoppingCart.Application/Handlers/AddToCartCommandHandler.cs -------------------------------------------------------------------------------- /Part4-decorator/ShoppingCart.Application/Handlers/GetCartQueryHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/ShoppingCart.Application/Handlers/GetCartQueryHandler.cs -------------------------------------------------------------------------------- /Part4-decorator/ShoppingCart.Application/IServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/ShoppingCart.Application/IServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part4-decorator/ShoppingCart.Application/Repositories/IShoppingCartRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/ShoppingCart.Application/Repositories/IShoppingCartRepository.cs -------------------------------------------------------------------------------- /Part4-decorator/ShoppingCart.Application/Repositories/ShoppingCartRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/ShoppingCart.Application/Repositories/ShoppingCartRepository.cs -------------------------------------------------------------------------------- /Part4-decorator/ShoppingCart.Application/ShoppingCart.Application.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/ShoppingCart.Application/ShoppingCart.Application.csproj -------------------------------------------------------------------------------- /Part4-decorator/ShoppingCart.Commands/AddToCartCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/ShoppingCart.Commands/AddToCartCommand.cs -------------------------------------------------------------------------------- /Part4-decorator/ShoppingCart.Commands/ClearCartCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/ShoppingCart.Commands/ClearCartCommand.cs -------------------------------------------------------------------------------- /Part4-decorator/ShoppingCart.Commands/GetCartQuery.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/ShoppingCart.Commands/GetCartQuery.cs -------------------------------------------------------------------------------- /Part4-decorator/ShoppingCart.Commands/ShoppingCart.Commands.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/ShoppingCart.Commands/ShoppingCart.Commands.csproj -------------------------------------------------------------------------------- /Part4-decorator/ShoppingCart.Model/ShoppingCart.Model.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/ShoppingCart.Model/ShoppingCart.Model.csproj -------------------------------------------------------------------------------- /Part4-decorator/ShoppingCart.Model/ShoppingCart.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/ShoppingCart.Model/ShoppingCart.cs -------------------------------------------------------------------------------- /Part4-decorator/ShoppingCart.Model/ShoppingCartItem.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/ShoppingCart.Model/ShoppingCartItem.cs -------------------------------------------------------------------------------- /Part4-decorator/ShoppingCart.Validation.Tests/AddToCartCommandValidatorShould.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/ShoppingCart.Validation.Tests/AddToCartCommandValidatorShould.cs -------------------------------------------------------------------------------- /Part4-decorator/ShoppingCart.Validation.Tests/ShoppingCart.Validation.Tests.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/ShoppingCart.Validation.Tests/ShoppingCart.Validation.Tests.csproj -------------------------------------------------------------------------------- /Part4-decorator/ShoppingCart.Validation/AddToCartCommandValidator.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/ShoppingCart.Validation/AddToCartCommandValidator.cs -------------------------------------------------------------------------------- /Part4-decorator/ShoppingCart.Validation/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.CompilerServices; 2 | 3 | [assembly: InternalsVisibleTo("ShoppingCart.Validation.Tests")] -------------------------------------------------------------------------------- /Part4-decorator/ShoppingCart.Validation/IServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/ShoppingCart.Validation/IServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part4-decorator/ShoppingCart.Validation/ShoppingCart.Validation.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/ShoppingCart.Validation/ShoppingCart.Validation.csproj -------------------------------------------------------------------------------- /Part4-decorator/Store.Application/Handlers/GetStoreProductQueryHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Store.Application/Handlers/GetStoreProductQueryHandler.cs -------------------------------------------------------------------------------- /Part4-decorator/Store.Application/IServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Store.Application/IServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part4-decorator/Store.Application/Repository/IStoreProductRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Store.Application/Repository/IStoreProductRepository.cs -------------------------------------------------------------------------------- /Part4-decorator/Store.Application/Repository/StoreProductRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Store.Application/Repository/StoreProductRepository.cs -------------------------------------------------------------------------------- /Part4-decorator/Store.Application/Store.Application.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Store.Application/Store.Application.csproj -------------------------------------------------------------------------------- /Part4-decorator/Store.Commands/GetStoreProductQuery.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Store.Commands/GetStoreProductQuery.cs -------------------------------------------------------------------------------- /Part4-decorator/Store.Commands/Store.Commands.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Store.Commands/Store.Commands.csproj -------------------------------------------------------------------------------- /Part4-decorator/Store.Model/Store.Model.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Store.Model/Store.Model.csproj -------------------------------------------------------------------------------- /Part4-decorator/Store.Model/StoreProduct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Store.Model/StoreProduct.cs -------------------------------------------------------------------------------- /Part4-decorator/Store.Validation.Tests/GetStoreProductQueryValidatorShould.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Store.Validation.Tests/GetStoreProductQueryValidatorShould.cs -------------------------------------------------------------------------------- /Part4-decorator/Store.Validation.Tests/Store.Validation.Tests.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Store.Validation.Tests/Store.Validation.Tests.csproj -------------------------------------------------------------------------------- /Part4-decorator/Store.Validation/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.CompilerServices; 2 | 3 | [assembly: InternalsVisibleTo("Store.Validation.Tests")] -------------------------------------------------------------------------------- /Part4-decorator/Store.Validation/GetStoreProductQueryValidator.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Store.Validation/GetStoreProductQueryValidator.cs -------------------------------------------------------------------------------- /Part4-decorator/Store.Validation/IServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Store.Validation/IServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part4-decorator/Store.Validation/Store.Validation.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-decorator/Store.Validation/Store.Validation.csproj -------------------------------------------------------------------------------- /Part4-framework/Checkout.Application/Checkout.Application.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Checkout.Application/Checkout.Application.csproj -------------------------------------------------------------------------------- /Part4-framework/Checkout.Application/Handlers/CreateOrderCommandHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Checkout.Application/Handlers/CreateOrderCommandHandler.cs -------------------------------------------------------------------------------- /Part4-framework/Checkout.Application/Handlers/MakePaymentCommandHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Checkout.Application/Handlers/MakePaymentCommandHandler.cs -------------------------------------------------------------------------------- /Part4-framework/Checkout.Application/Repositories/IOrderRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Checkout.Application/Repositories/IOrderRepository.cs -------------------------------------------------------------------------------- /Part4-framework/Checkout.Application/Repositories/OrderRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Checkout.Application/Repositories/OrderRepository.cs -------------------------------------------------------------------------------- /Part4-framework/Checkout.Application/Repositories/OrderRepositoryException.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Checkout.Application/Repositories/OrderRepositoryException.cs -------------------------------------------------------------------------------- /Part4-framework/Checkout.Application/ServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Checkout.Application/ServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part4-framework/Checkout.Commands/Checkout.Commands.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Checkout.Commands/Checkout.Commands.csproj -------------------------------------------------------------------------------- /Part4-framework/Checkout.Commands/CreateOrderCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Checkout.Commands/CreateOrderCommand.cs -------------------------------------------------------------------------------- /Part4-framework/Checkout.Commands/MakePaymentCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Checkout.Commands/MakePaymentCommand.cs -------------------------------------------------------------------------------- /Part4-framework/Checkout.Model/Checkout.Model.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Checkout.Model/Checkout.Model.csproj -------------------------------------------------------------------------------- /Part4-framework/Checkout.Model/Order.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Checkout.Model/Order.cs -------------------------------------------------------------------------------- /Part4-framework/Checkout.Model/OrderItem.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Checkout.Model/OrderItem.cs -------------------------------------------------------------------------------- /Part4-framework/Checkout.Validation.Tests/Checkout.Validation.Tests.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Checkout.Validation.Tests/Checkout.Validation.Tests.csproj -------------------------------------------------------------------------------- /Part4-framework/Checkout.Validation.Tests/MakePaymentCommandValidatorShould.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Checkout.Validation.Tests/MakePaymentCommandValidatorShould.cs -------------------------------------------------------------------------------- /Part4-framework/Checkout.Validation/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.CompilerServices; 2 | 3 | [assembly: InternalsVisibleTo("Checkout.Validation.Tests")] 4 | -------------------------------------------------------------------------------- /Part4-framework/Checkout.Validation/Checkout.Validation.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Checkout.Validation/Checkout.Validation.csproj -------------------------------------------------------------------------------- /Part4-framework/Checkout.Validation/IServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Checkout.Validation/IServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part4-framework/Checkout.Validation/MakePaymentCommandValidator.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Checkout.Validation/MakePaymentCommandValidator.cs -------------------------------------------------------------------------------- /Part4-framework/Core.Model/ApplicationException.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Core.Model/ApplicationException.cs -------------------------------------------------------------------------------- /Part4-framework/Core.Model/CommandError.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Core.Model/CommandError.cs -------------------------------------------------------------------------------- /Part4-framework/Core.Model/CommandResponse.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Core.Model/CommandResponse.cs -------------------------------------------------------------------------------- /Part4-framework/Core.Model/Core.Model.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Core.Model/Core.Model.csproj -------------------------------------------------------------------------------- /Part4-framework/Core.Model/IUserContextCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Core.Model/IUserContextCommand.cs -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api.Tests/Controllers/AbstractCommandControllerShould.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api.Tests/Controllers/AbstractCommandControllerShould.cs -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api.Tests/OnlineStore.Api.Tests.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api.Tests/OnlineStore.Api.Tests.csproj -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api.Tests/TestAssets/SimpleCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api.Tests/TestAssets/SimpleCommand.cs -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api/Binders/AuthenticatedUserIdAwareBodyModelBinder.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api/Binders/AuthenticatedUserIdAwareBodyModelBinder.cs -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api/Binders/AuthenticatedUserIdAwareBodyModelBinderProvider.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api/Binders/AuthenticatedUserIdAwareBodyModelBinderProvider.cs -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api/Commanding/AuditItemUserIdEnricher.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api/Commanding/AuditItemUserIdEnricher.cs -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api/Commanding/CommandExecutionExceptionHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api/Commanding/CommandExecutionExceptionHandler.cs -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api/Commanding/LoggingCommandExecutionAuditor.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api/Commanding/LoggingCommandExecutionAuditor.cs -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api/Commanding/LoggingCommandPreDispatchAuditor.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api/Commanding/LoggingCommandPreDispatchAuditor.cs -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api/Controllers/AbstractCommandController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api/Controllers/AbstractCommandController.cs -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api/Controllers/CheckoutController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api/Controllers/CheckoutController.cs -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api/Controllers/HomeController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api/Controllers/HomeController.cs -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api/Controllers/ProductController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api/Controllers/ProductController.cs -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api/Controllers/ShoppingCartController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api/Controllers/ShoppingCartController.cs -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api/Exceptions/DispatcherException.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api/Exceptions/DispatcherException.cs -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api/Extensions/CommandResponseExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api/Extensions/CommandResponseExtensions.cs -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api/Extensions/ControllerExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api/Extensions/ControllerExtensions.cs -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api/Extensions/DispatcherExceptionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api/Extensions/DispatcherExceptionExtensions.cs -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api/Filters/AssignAuthenticatedUserIdActionFilter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api/Filters/AssignAuthenticatedUserIdActionFilter.cs -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api/MetadataProviders/AuthenticatedUserIdParameterModelConvention.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api/MetadataProviders/AuthenticatedUserIdParameterModelConvention.cs -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api/Metrics/IMetricCollector.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api/Metrics/IMetricCollector.cs -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api/Metrics/MetricCollector.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api/Metrics/MetricCollector.cs -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api/OnlineStore.Api.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api/OnlineStore.Api.csproj -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api/Program.cs -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api/Properties/AssemblyInfo.cs -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api/Properties/launchSettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api/Properties/launchSettings.json -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api/Startup.cs -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api/Swagger/SwaggerAuthenticatedUserIdFilter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api/Swagger/SwaggerAuthenticatedUserIdFilter.cs -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api/Swagger/SwaggerAuthenticatedUserIdOperationFilter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api/Swagger/SwaggerAuthenticatedUserIdOperationFilter.cs -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api/appsettings.Development.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api/appsettings.Development.json -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.Api/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.Api/appsettings.json -------------------------------------------------------------------------------- /Part4-framework/OnlineStore.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/OnlineStore.sln -------------------------------------------------------------------------------- /Part4-framework/ShoppingCart.Application/Handlers/AddToCartCommandHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/ShoppingCart.Application/Handlers/AddToCartCommandHandler.cs -------------------------------------------------------------------------------- /Part4-framework/ShoppingCart.Application/Handlers/GetCartQueryHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/ShoppingCart.Application/Handlers/GetCartQueryHandler.cs -------------------------------------------------------------------------------- /Part4-framework/ShoppingCart.Application/IServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/ShoppingCart.Application/IServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part4-framework/ShoppingCart.Application/Repositories/IShoppingCartRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/ShoppingCart.Application/Repositories/IShoppingCartRepository.cs -------------------------------------------------------------------------------- /Part4-framework/ShoppingCart.Application/Repositories/ShoppingCartRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/ShoppingCart.Application/Repositories/ShoppingCartRepository.cs -------------------------------------------------------------------------------- /Part4-framework/ShoppingCart.Application/ShoppingCart.Application.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/ShoppingCart.Application/ShoppingCart.Application.csproj -------------------------------------------------------------------------------- /Part4-framework/ShoppingCart.Commands/AddToCartCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/ShoppingCart.Commands/AddToCartCommand.cs -------------------------------------------------------------------------------- /Part4-framework/ShoppingCart.Commands/ClearCartCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/ShoppingCart.Commands/ClearCartCommand.cs -------------------------------------------------------------------------------- /Part4-framework/ShoppingCart.Commands/GetCartQuery.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/ShoppingCart.Commands/GetCartQuery.cs -------------------------------------------------------------------------------- /Part4-framework/ShoppingCart.Commands/ShoppingCart.Commands.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/ShoppingCart.Commands/ShoppingCart.Commands.csproj -------------------------------------------------------------------------------- /Part4-framework/ShoppingCart.Model/ShoppingCart.Model.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/ShoppingCart.Model/ShoppingCart.Model.csproj -------------------------------------------------------------------------------- /Part4-framework/ShoppingCart.Model/ShoppingCart.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/ShoppingCart.Model/ShoppingCart.cs -------------------------------------------------------------------------------- /Part4-framework/ShoppingCart.Model/ShoppingCartItem.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/ShoppingCart.Model/ShoppingCartItem.cs -------------------------------------------------------------------------------- /Part4-framework/ShoppingCart.Validation.Tests/AddToCartCommandValidatorShould.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/ShoppingCart.Validation.Tests/AddToCartCommandValidatorShould.cs -------------------------------------------------------------------------------- /Part4-framework/ShoppingCart.Validation.Tests/ShoppingCart.Validation.Tests.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/ShoppingCart.Validation.Tests/ShoppingCart.Validation.Tests.csproj -------------------------------------------------------------------------------- /Part4-framework/ShoppingCart.Validation/AddToCartCommandValidator.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/ShoppingCart.Validation/AddToCartCommandValidator.cs -------------------------------------------------------------------------------- /Part4-framework/ShoppingCart.Validation/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.CompilerServices; 2 | 3 | [assembly: InternalsVisibleTo("ShoppingCart.Validation.Tests")] -------------------------------------------------------------------------------- /Part4-framework/ShoppingCart.Validation/IServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/ShoppingCart.Validation/IServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part4-framework/ShoppingCart.Validation/ShoppingCart.Validation.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/ShoppingCart.Validation/ShoppingCart.Validation.csproj -------------------------------------------------------------------------------- /Part4-framework/Store.Application/Handlers/GetStoreProductQueryHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Store.Application/Handlers/GetStoreProductQueryHandler.cs -------------------------------------------------------------------------------- /Part4-framework/Store.Application/IServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Store.Application/IServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part4-framework/Store.Application/Repository/IStoreProductRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Store.Application/Repository/IStoreProductRepository.cs -------------------------------------------------------------------------------- /Part4-framework/Store.Application/Repository/StoreProductRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Store.Application/Repository/StoreProductRepository.cs -------------------------------------------------------------------------------- /Part4-framework/Store.Application/Store.Application.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Store.Application/Store.Application.csproj -------------------------------------------------------------------------------- /Part4-framework/Store.Commands/GetStoreProductQuery.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Store.Commands/GetStoreProductQuery.cs -------------------------------------------------------------------------------- /Part4-framework/Store.Commands/Store.Commands.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Store.Commands/Store.Commands.csproj -------------------------------------------------------------------------------- /Part4-framework/Store.Model/Store.Model.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Store.Model/Store.Model.csproj -------------------------------------------------------------------------------- /Part4-framework/Store.Model/StoreProduct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Store.Model/StoreProduct.cs -------------------------------------------------------------------------------- /Part4-framework/Store.Validation.Tests/GetStoreProductQueryValidatorShould.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Store.Validation.Tests/GetStoreProductQueryValidatorShould.cs -------------------------------------------------------------------------------- /Part4-framework/Store.Validation.Tests/Store.Validation.Tests.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Store.Validation.Tests/Store.Validation.Tests.csproj -------------------------------------------------------------------------------- /Part4-framework/Store.Validation/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.CompilerServices; 2 | 3 | [assembly: InternalsVisibleTo("Store.Validation.Tests")] -------------------------------------------------------------------------------- /Part4-framework/Store.Validation/GetStoreProductQueryValidator.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Store.Validation/GetStoreProductQueryValidator.cs -------------------------------------------------------------------------------- /Part4-framework/Store.Validation/IServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Store.Validation/IServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part4-framework/Store.Validation/Store.Validation.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part4-framework/Store.Validation/Store.Validation.csproj -------------------------------------------------------------------------------- /Part5/Checkout.Application/Checkout.Application.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Checkout.Application/Checkout.Application.csproj -------------------------------------------------------------------------------- /Part5/Checkout.Application/Handlers/CreateOrderCommandHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Checkout.Application/Handlers/CreateOrderCommandHandler.cs -------------------------------------------------------------------------------- /Part5/Checkout.Application/Handlers/MakePaymentCommandHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Checkout.Application/Handlers/MakePaymentCommandHandler.cs -------------------------------------------------------------------------------- /Part5/Checkout.Application/Repositories/IOrderRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Checkout.Application/Repositories/IOrderRepository.cs -------------------------------------------------------------------------------- /Part5/Checkout.Application/Repositories/OrderRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Checkout.Application/Repositories/OrderRepository.cs -------------------------------------------------------------------------------- /Part5/Checkout.Application/Repositories/OrderRepositoryException.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Checkout.Application/Repositories/OrderRepositoryException.cs -------------------------------------------------------------------------------- /Part5/Checkout.Application/ServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Checkout.Application/ServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part5/Checkout.Commands/Checkout.Commands.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Checkout.Commands/Checkout.Commands.csproj -------------------------------------------------------------------------------- /Part5/Checkout.Commands/CreateOrderCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Checkout.Commands/CreateOrderCommand.cs -------------------------------------------------------------------------------- /Part5/Checkout.Commands/MakePaymentCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Checkout.Commands/MakePaymentCommand.cs -------------------------------------------------------------------------------- /Part5/Checkout.Model/Checkout.Model.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Checkout.Model/Checkout.Model.csproj -------------------------------------------------------------------------------- /Part5/Checkout.Model/Order.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Checkout.Model/Order.cs -------------------------------------------------------------------------------- /Part5/Checkout.Model/OrderItem.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Checkout.Model/OrderItem.cs -------------------------------------------------------------------------------- /Part5/Checkout.Validation.Tests/Checkout.Validation.Tests.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Checkout.Validation.Tests/Checkout.Validation.Tests.csproj -------------------------------------------------------------------------------- /Part5/Checkout.Validation.Tests/MakePaymentCommandValidatorShould.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Checkout.Validation.Tests/MakePaymentCommandValidatorShould.cs -------------------------------------------------------------------------------- /Part5/Checkout.Validation/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.CompilerServices; 2 | 3 | [assembly: InternalsVisibleTo("Checkout.Validation.Tests")] 4 | -------------------------------------------------------------------------------- /Part5/Checkout.Validation/Checkout.Validation.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Checkout.Validation/Checkout.Validation.csproj -------------------------------------------------------------------------------- /Part5/Checkout.Validation/IServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Checkout.Validation/IServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part5/Checkout.Validation/MakePaymentCommandValidator.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Checkout.Validation/MakePaymentCommandValidator.cs -------------------------------------------------------------------------------- /Part5/Core.Commanding/Commanding/AuditItemUserIdEnricher.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Core.Commanding/Commanding/AuditItemUserIdEnricher.cs -------------------------------------------------------------------------------- /Part5/Core.Commanding/Commanding/CommandExecutionExceptionHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Core.Commanding/Commanding/CommandExecutionExceptionHandler.cs -------------------------------------------------------------------------------- /Part5/Core.Commanding/Commanding/LoggingCommandExecutionAuditor.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Core.Commanding/Commanding/LoggingCommandExecutionAuditor.cs -------------------------------------------------------------------------------- /Part5/Core.Commanding/Commanding/LoggingCommandPreDispatchAuditor.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Core.Commanding/Commanding/LoggingCommandPreDispatchAuditor.cs -------------------------------------------------------------------------------- /Part5/Core.Commanding/Core.Commanding.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Core.Commanding/Core.Commanding.csproj -------------------------------------------------------------------------------- /Part5/Core.Commanding/Exceptions/DispatcherException.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Core.Commanding/Exceptions/DispatcherException.cs -------------------------------------------------------------------------------- /Part5/Core.Commanding/IServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Core.Commanding/IServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part5/Core.Commanding/Metrics/IMetricCollector.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Core.Commanding/Metrics/IMetricCollector.cs -------------------------------------------------------------------------------- /Part5/Core.Commanding/Metrics/MetricCollector.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Core.Commanding/Metrics/MetricCollector.cs -------------------------------------------------------------------------------- /Part5/Core.Model/ApplicationException.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Core.Model/ApplicationException.cs -------------------------------------------------------------------------------- /Part5/Core.Model/CommandError.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Core.Model/CommandError.cs -------------------------------------------------------------------------------- /Part5/Core.Model/CommandResponse.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Core.Model/CommandResponse.cs -------------------------------------------------------------------------------- /Part5/Core.Model/Core.Model.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Core.Model/Core.Model.csproj -------------------------------------------------------------------------------- /Part5/Core.Model/IUserContextCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Core.Model/IUserContextCommand.cs -------------------------------------------------------------------------------- /Part5/OnlineStore.Api.Tests/Controllers/AbstractCommandControllerShould.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/OnlineStore.Api.Tests/Controllers/AbstractCommandControllerShould.cs -------------------------------------------------------------------------------- /Part5/OnlineStore.Api.Tests/OnlineStore.Api.Tests.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/OnlineStore.Api.Tests/OnlineStore.Api.Tests.csproj -------------------------------------------------------------------------------- /Part5/OnlineStore.Api.Tests/TestAssets/SimpleCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/OnlineStore.Api.Tests/TestAssets/SimpleCommand.cs -------------------------------------------------------------------------------- /Part5/OnlineStore.Api/Binders/AuthenticatedUserIdAwareBodyModelBinder.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/OnlineStore.Api/Binders/AuthenticatedUserIdAwareBodyModelBinder.cs -------------------------------------------------------------------------------- /Part5/OnlineStore.Api/Binders/AuthenticatedUserIdAwareBodyModelBinderProvider.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/OnlineStore.Api/Binders/AuthenticatedUserIdAwareBodyModelBinderProvider.cs -------------------------------------------------------------------------------- /Part5/OnlineStore.Api/Controllers/AbstractCommandController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/OnlineStore.Api/Controllers/AbstractCommandController.cs -------------------------------------------------------------------------------- /Part5/OnlineStore.Api/Controllers/CheckoutController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/OnlineStore.Api/Controllers/CheckoutController.cs -------------------------------------------------------------------------------- /Part5/OnlineStore.Api/Controllers/HomeController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/OnlineStore.Api/Controllers/HomeController.cs -------------------------------------------------------------------------------- /Part5/OnlineStore.Api/Controllers/ProductController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/OnlineStore.Api/Controllers/ProductController.cs -------------------------------------------------------------------------------- /Part5/OnlineStore.Api/Controllers/ShoppingCartController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/OnlineStore.Api/Controllers/ShoppingCartController.cs -------------------------------------------------------------------------------- /Part5/OnlineStore.Api/Extensions/CommandResponseExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/OnlineStore.Api/Extensions/CommandResponseExtensions.cs -------------------------------------------------------------------------------- /Part5/OnlineStore.Api/Extensions/ControllerExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/OnlineStore.Api/Extensions/ControllerExtensions.cs -------------------------------------------------------------------------------- /Part5/OnlineStore.Api/Extensions/DispatcherExceptionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/OnlineStore.Api/Extensions/DispatcherExceptionExtensions.cs -------------------------------------------------------------------------------- /Part5/OnlineStore.Api/Filters/AssignAuthenticatedUserIdActionFilter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/OnlineStore.Api/Filters/AssignAuthenticatedUserIdActionFilter.cs -------------------------------------------------------------------------------- /Part5/OnlineStore.Api/MetadataProviders/AuthenticatedUserIdParameterModelConvention.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/OnlineStore.Api/MetadataProviders/AuthenticatedUserIdParameterModelConvention.cs -------------------------------------------------------------------------------- /Part5/OnlineStore.Api/OnlineStore.Api.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/OnlineStore.Api/OnlineStore.Api.csproj -------------------------------------------------------------------------------- /Part5/OnlineStore.Api/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/OnlineStore.Api/Program.cs -------------------------------------------------------------------------------- /Part5/OnlineStore.Api/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/OnlineStore.Api/Properties/AssemblyInfo.cs -------------------------------------------------------------------------------- /Part5/OnlineStore.Api/Properties/launchSettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/OnlineStore.Api/Properties/launchSettings.json -------------------------------------------------------------------------------- /Part5/OnlineStore.Api/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/OnlineStore.Api/Startup.cs -------------------------------------------------------------------------------- /Part5/OnlineStore.Api/Swagger/SwaggerAuthenticatedUserIdFilter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/OnlineStore.Api/Swagger/SwaggerAuthenticatedUserIdFilter.cs -------------------------------------------------------------------------------- /Part5/OnlineStore.Api/Swagger/SwaggerAuthenticatedUserIdOperationFilter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/OnlineStore.Api/Swagger/SwaggerAuthenticatedUserIdOperationFilter.cs -------------------------------------------------------------------------------- /Part5/OnlineStore.Api/appsettings.Development.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/OnlineStore.Api/appsettings.Development.json -------------------------------------------------------------------------------- /Part5/OnlineStore.Api/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/OnlineStore.Api/appsettings.json -------------------------------------------------------------------------------- /Part5/OnlineStore.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/OnlineStore.sln -------------------------------------------------------------------------------- /Part5/ShoppingCart.Application/Handlers/AddToCartCommandHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/ShoppingCart.Application/Handlers/AddToCartCommandHandler.cs -------------------------------------------------------------------------------- /Part5/ShoppingCart.Application/Handlers/GetCartQueryHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/ShoppingCart.Application/Handlers/GetCartQueryHandler.cs -------------------------------------------------------------------------------- /Part5/ShoppingCart.Application/IServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/ShoppingCart.Application/IServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part5/ShoppingCart.Application/Repositories/IShoppingCartRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/ShoppingCart.Application/Repositories/IShoppingCartRepository.cs -------------------------------------------------------------------------------- /Part5/ShoppingCart.Application/Repositories/ShoppingCartRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/ShoppingCart.Application/Repositories/ShoppingCartRepository.cs -------------------------------------------------------------------------------- /Part5/ShoppingCart.Application/ShoppingCart.Application.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/ShoppingCart.Application/ShoppingCart.Application.csproj -------------------------------------------------------------------------------- /Part5/ShoppingCart.Commands/AddToCartCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/ShoppingCart.Commands/AddToCartCommand.cs -------------------------------------------------------------------------------- /Part5/ShoppingCart.Commands/ClearCartCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/ShoppingCart.Commands/ClearCartCommand.cs -------------------------------------------------------------------------------- /Part5/ShoppingCart.Commands/GetCartQuery.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/ShoppingCart.Commands/GetCartQuery.cs -------------------------------------------------------------------------------- /Part5/ShoppingCart.Commands/ShoppingCart.Commands.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/ShoppingCart.Commands/ShoppingCart.Commands.csproj -------------------------------------------------------------------------------- /Part5/ShoppingCart.Model/ShoppingCart.Model.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/ShoppingCart.Model/ShoppingCart.Model.csproj -------------------------------------------------------------------------------- /Part5/ShoppingCart.Model/ShoppingCart.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/ShoppingCart.Model/ShoppingCart.cs -------------------------------------------------------------------------------- /Part5/ShoppingCart.Model/ShoppingCartItem.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/ShoppingCart.Model/ShoppingCartItem.cs -------------------------------------------------------------------------------- /Part5/ShoppingCart.Validation.Tests/AddToCartCommandValidatorShould.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/ShoppingCart.Validation.Tests/AddToCartCommandValidatorShould.cs -------------------------------------------------------------------------------- /Part5/ShoppingCart.Validation.Tests/ShoppingCart.Validation.Tests.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/ShoppingCart.Validation.Tests/ShoppingCart.Validation.Tests.csproj -------------------------------------------------------------------------------- /Part5/ShoppingCart.Validation/AddToCartCommandValidator.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/ShoppingCart.Validation/AddToCartCommandValidator.cs -------------------------------------------------------------------------------- /Part5/ShoppingCart.Validation/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.CompilerServices; 2 | 3 | [assembly: InternalsVisibleTo("ShoppingCart.Validation.Tests")] -------------------------------------------------------------------------------- /Part5/ShoppingCart.Validation/IServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/ShoppingCart.Validation/IServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part5/ShoppingCart.Validation/ShoppingCart.Validation.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/ShoppingCart.Validation/ShoppingCart.Validation.csproj -------------------------------------------------------------------------------- /Part5/Store.Application/Handlers/GetStoreProductQueryHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Store.Application/Handlers/GetStoreProductQueryHandler.cs -------------------------------------------------------------------------------- /Part5/Store.Application/IServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Store.Application/IServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part5/Store.Application/Repository/IStoreProductRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Store.Application/Repository/IStoreProductRepository.cs -------------------------------------------------------------------------------- /Part5/Store.Application/Repository/StoreProductRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Store.Application/Repository/StoreProductRepository.cs -------------------------------------------------------------------------------- /Part5/Store.Application/Store.Application.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Store.Application/Store.Application.csproj -------------------------------------------------------------------------------- /Part5/Store.Commands/GetStoreProductQuery.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Store.Commands/GetStoreProductQuery.cs -------------------------------------------------------------------------------- /Part5/Store.Commands/Store.Commands.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Store.Commands/Store.Commands.csproj -------------------------------------------------------------------------------- /Part5/Store.Functions/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Store.Functions/.gitignore -------------------------------------------------------------------------------- /Part5/Store.Functions/GetStoreProduct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Store.Functions/GetStoreProduct.cs -------------------------------------------------------------------------------- /Part5/Store.Functions/Store.Functions.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Store.Functions/Store.Functions.csproj -------------------------------------------------------------------------------- /Part5/Store.Functions/host.json: -------------------------------------------------------------------------------- 1 | { 2 | } -------------------------------------------------------------------------------- /Part5/Store.Model/Store.Model.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Store.Model/Store.Model.csproj -------------------------------------------------------------------------------- /Part5/Store.Model/StoreProduct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Store.Model/StoreProduct.cs -------------------------------------------------------------------------------- /Part5/Store.Validation.Tests/GetStoreProductQueryValidatorShould.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Store.Validation.Tests/GetStoreProductQueryValidatorShould.cs -------------------------------------------------------------------------------- /Part5/Store.Validation.Tests/Store.Validation.Tests.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Store.Validation.Tests/Store.Validation.Tests.csproj -------------------------------------------------------------------------------- /Part5/Store.Validation/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.CompilerServices; 2 | 3 | [assembly: InternalsVisibleTo("Store.Validation.Tests")] -------------------------------------------------------------------------------- /Part5/Store.Validation/GetStoreProductQueryValidator.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Store.Validation/GetStoreProductQueryValidator.cs -------------------------------------------------------------------------------- /Part5/Store.Validation/IServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Store.Validation/IServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Part5/Store.Validation/Store.Validation.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesRandall/CommandMessagePatternTutorial/HEAD/Part5/Store.Validation/Store.Validation.csproj --------------------------------------------------------------------------------