From 46acc44535c7cfcee6caf2fa460086d7db953fae Mon Sep 17 00:00:00 2001 From: Oskar Dudycz Date: Thu, 2 May 2024 07:46:39 +0200 Subject: [PATCH] Adjusted namespaces in EventStoreDB Application Logic an Optimistic concurrency execises --- .../Settings.cs | 4 ++-- .../AddProductItemToShoppingCartTests.cs | 8 ++++---- .../ShoppingCarts/CancelShoppingCartTests.cs | 8 ++++---- .../ShoppingCarts/ConfirmShoppingCartTests.cs | 8 ++++---- .../ShoppingCarts/Fixtures.cs | 4 ++-- .../ShoppingCarts/OpenShoppingCartTests.cs | 6 +++--- .../RemoveProductItemFromShoppingCartTests.cs | 8 ++++---- .../Core/Entities/Aggregate.cs | 2 +- .../Core/Exceptions/NotFoundException.cs | 2 +- .../Core/Marten/DocumentSessionExtensions.cs | 4 ++-- .../Core/Marten/EventMappings.cs | 2 +- .../Immutable/Pricing/PricingCalculator.cs | 4 +--- .../Immutable/Pricing/ProductItems.cs | 2 +- .../Immutable/ShoppingCarts/Api.cs | 6 +++--- .../Immutable/ShoppingCarts/Configure.cs | 6 +++--- .../Immutable/ShoppingCarts/ShoppingCart.cs | 4 ++-- .../Immutable/ShoppingCarts/ShoppingCartService.cs | 5 ++--- .../Mixed/Pricing/PricingCalculator.cs | 2 +- .../Mixed/Pricing/ProductItems.cs | 2 +- .../Mixed/ShoppingCarts/Api.cs | 6 +++--- .../Mixed/ShoppingCarts/Configure.cs | 6 +++--- .../Mixed/ShoppingCarts/MixedShoppingCart.cs | 4 ++-- .../Mutable/Pricing/PricingCalculator.cs | 2 +- .../Mutable/Pricing/ProductItems.cs | 2 +- .../Mutable/ShoppingCarts/Api.cs | 6 +++--- .../Mutable/ShoppingCarts/Configure.cs | 6 +++--- .../Mutable/ShoppingCarts/MutableShoppingCart.cs | 6 +++--- .../09-ApplicationLogic.EventStoreDB/Program.cs | 13 ++++++++----- .../Settings.cs | 2 +- .../AddProductItemToShoppingCartTests.cs | 6 +++--- .../ShoppingCarts/CancelShoppingCartTests.cs | 6 +++--- .../ShoppingCarts/ConfirmShoppingCartTests.cs | 6 +++--- .../ShoppingCarts/Fixtures.cs | 2 +- .../ShoppingCarts/OpenShoppingCartTests.cs | 6 +++--- .../RemoveProductItemFromShoppingCartTests.cs | 6 +++--- .../Settings.cs | 2 +- .../AddProductItemToShoppingCartTests.cs | 8 ++++---- .../ShoppingCarts/CancelShoppingCartTests.cs | 8 ++++---- .../ShoppingCarts/ConfirmShoppingCartTests.cs | 8 ++++---- .../ShoppingCarts/Fixtures.cs | 4 ++-- .../ShoppingCarts/OpenShoppingCartTests.cs | 6 +++--- .../RemoveProductItemFromShoppingCartTests.cs | 8 ++++---- .../09-ApplicationLogic.EventStoreDB.csproj | 2 +- .../Core/Entities/Aggregate.cs | 2 +- .../Core/Exceptions/NotFoundException.cs | 2 +- .../Core/Marten/DocumentSessionExtensions.cs | 6 +++--- .../Core/Marten/EventMappings.cs | 2 +- .../Immutable/Pricing/PricingCalculator.cs | 4 +--- .../Immutable/Pricing/ProductItems.cs | 2 +- .../Immutable/ShoppingCarts/Api.cs | 6 +++--- .../Immutable/ShoppingCarts/Configure.cs | 6 +++--- .../Immutable/ShoppingCarts/ShoppingCart.cs | 4 ++-- .../Immutable/ShoppingCarts/ShoppingCartService.cs | 5 ++--- .../Mixed/Pricing/PricingCalculator.cs | 2 +- .../Mixed/Pricing/ProductItems.cs | 2 +- .../Mixed/ShoppingCarts/Api.cs | 6 +++--- .../Mixed/ShoppingCarts/Configure.cs | 6 +++--- .../Mixed/ShoppingCarts/MixedShoppingCart.cs | 4 ++-- .../Mutable/Pricing/PricingCalculator.cs | 2 +- .../Mutable/Pricing/ProductItems.cs | 2 +- .../Mutable/ShoppingCarts/Api.cs | 6 +++--- .../Mutable/ShoppingCarts/Configure.cs | 6 +++--- .../Mutable/ShoppingCarts/MutableShoppingCart.cs | 6 +++--- .../09-ApplicationLogic.EventStoreDB/Program.cs | 13 ++++++++----- .../Settings.cs | 2 +- .../AddProductItemToShoppingCartTests.cs | 6 +++--- .../ShoppingCarts/CancelShoppingCartTests.cs | 6 +++--- .../ShoppingCarts/ConfirmShoppingCartTests.cs | 6 +++--- .../ShoppingCarts/Fixtures.cs | 2 +- .../ShoppingCarts/OpenShoppingCartTests.cs | 6 +++--- .../RemoveProductItemFromShoppingCartTests.cs | 6 +++--- 71 files changed, 173 insertions(+), 173 deletions(-) diff --git a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB.Tests/Settings.cs b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB.Tests/Settings.cs index cc8d5f680..1467b4a60 100644 --- a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB.Tests/Settings.cs +++ b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB.Tests/Settings.cs @@ -3,10 +3,10 @@ using Xunit.Abstractions; using Xunit.Sdk; -[assembly: TestFramework("ApplicationLogic.Marten.Tests.AssemblyFixture", "ApplicationLogic.Marten.Tests")] +[assembly: TestFramework("ApplicationLogic.EventStoreDB.Tests.AssemblyFixture", "ApplicationLogic.EventStoreDB.Tests")] [assembly: CollectionBehavior(DisableTestParallelization = true)] -namespace ApplicationLogic.Marten.Tests; +namespace ApplicationLogic.EventStoreDB.Tests; public sealed class AssemblyFixture : XunitTestFramework { diff --git a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/AddProductItemToShoppingCartTests.cs b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/AddProductItemToShoppingCartTests.cs index 7bebc28f2..39af7eccf 100644 --- a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/AddProductItemToShoppingCartTests.cs +++ b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/AddProductItemToShoppingCartTests.cs @@ -1,12 +1,12 @@ -using ApplicationLogic.Marten.Immutable.ShoppingCarts; +using ApplicationLogic.EventStoreDB.Immutable.ShoppingCarts; using Bogus; using Ogooreck.API; using Xunit; using static Ogooreck.API.ApiSpecification; -using static ApplicationLogic.Marten.Tests.ShoppingCarts.Scenarios; -using static ApplicationLogic.Marten.Tests.ShoppingCarts.Fixtures; +using static ApplicationLogic.EventStoreDB.Tests.ShoppingCarts.Scenarios; +using static ApplicationLogic.EventStoreDB.Tests.ShoppingCarts.Fixtures; -namespace ApplicationLogic.Marten.Tests.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Tests.ShoppingCarts; public class AddProductItemToShoppingCartTests(ApiSpecification api): IClassFixture> diff --git a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/CancelShoppingCartTests.cs b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/CancelShoppingCartTests.cs index b13d0aee9..bb1f11330 100644 --- a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/CancelShoppingCartTests.cs +++ b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/CancelShoppingCartTests.cs @@ -1,12 +1,12 @@ -using ApplicationLogic.Marten.Immutable.ShoppingCarts; +using ApplicationLogic.EventStoreDB.Immutable.ShoppingCarts; using Bogus; using Ogooreck.API; using Xunit; using static Ogooreck.API.ApiSpecification; -using static ApplicationLogic.Marten.Tests.ShoppingCarts.Scenarios; -using static ApplicationLogic.Marten.Tests.ShoppingCarts.Fixtures; +using static ApplicationLogic.EventStoreDB.Tests.ShoppingCarts.Scenarios; +using static ApplicationLogic.EventStoreDB.Tests.ShoppingCarts.Fixtures; -namespace ApplicationLogic.Marten.Tests.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Tests.ShoppingCarts; public class CancelShoppingCartTests(ApiSpecification api): IClassFixture> diff --git a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/ConfirmShoppingCartTests.cs b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/ConfirmShoppingCartTests.cs index e42205612..d5356893e 100644 --- a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/ConfirmShoppingCartTests.cs +++ b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/ConfirmShoppingCartTests.cs @@ -1,12 +1,12 @@ -using ApplicationLogic.Marten.Immutable.ShoppingCarts; +using ApplicationLogic.EventStoreDB.Immutable.ShoppingCarts; using Bogus; using Ogooreck.API; using Xunit; using static Ogooreck.API.ApiSpecification; -using static ApplicationLogic.Marten.Tests.ShoppingCarts.Scenarios; -using static ApplicationLogic.Marten.Tests.ShoppingCarts.Fixtures; +using static ApplicationLogic.EventStoreDB.Tests.ShoppingCarts.Scenarios; +using static ApplicationLogic.EventStoreDB.Tests.ShoppingCarts.Fixtures; -namespace ApplicationLogic.Marten.Tests.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Tests.ShoppingCarts; public class ConfirmShoppingCartTests(ApiSpecification api): IClassFixture> diff --git a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/Fixtures.cs b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/Fixtures.cs index 4018d196a..470d00811 100644 --- a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/Fixtures.cs +++ b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/Fixtures.cs @@ -1,8 +1,8 @@ -using ApplicationLogic.Marten.Immutable.ShoppingCarts; +using ApplicationLogic.EventStoreDB.Immutable.ShoppingCarts; using Ogooreck.API; using static Ogooreck.API.ApiSpecification; -namespace ApplicationLogic.Marten.Tests.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Tests.ShoppingCarts; public static class Fixtures { diff --git a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/OpenShoppingCartTests.cs b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/OpenShoppingCartTests.cs index f3460cd0e..671091fd2 100644 --- a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/OpenShoppingCartTests.cs +++ b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/OpenShoppingCartTests.cs @@ -1,10 +1,10 @@ using Ogooreck.API; using Xunit; using static Ogooreck.API.ApiSpecification; -using static ApplicationLogic.Marten.Tests.ShoppingCarts.Scenarios; -using static ApplicationLogic.Marten.Tests.ShoppingCarts.Fixtures; +using static ApplicationLogic.EventStoreDB.Tests.ShoppingCarts.Scenarios; +using static ApplicationLogic.EventStoreDB.Tests.ShoppingCarts.Fixtures; -namespace ApplicationLogic.Marten.Tests.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Tests.ShoppingCarts; public class OpenShoppingCartTests(ApiSpecification api): IClassFixture> diff --git a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/RemoveProductItemFromShoppingCartTests.cs b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/RemoveProductItemFromShoppingCartTests.cs index a8ba8afd4..db0965050 100644 --- a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/RemoveProductItemFromShoppingCartTests.cs +++ b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/RemoveProductItemFromShoppingCartTests.cs @@ -1,12 +1,12 @@ -using ApplicationLogic.Marten.Immutable.ShoppingCarts; +using ApplicationLogic.EventStoreDB.Immutable.ShoppingCarts; using Bogus; using Ogooreck.API; using Xunit; using static Ogooreck.API.ApiSpecification; -using static ApplicationLogic.Marten.Tests.ShoppingCarts.Scenarios; -using static ApplicationLogic.Marten.Tests.ShoppingCarts.Fixtures; +using static ApplicationLogic.EventStoreDB.Tests.ShoppingCarts.Scenarios; +using static ApplicationLogic.EventStoreDB.Tests.ShoppingCarts.Fixtures; -namespace ApplicationLogic.Marten.Tests.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Tests.ShoppingCarts; public class RemoveProductItemFromShoppingCartTests(ApiSpecification api): IClassFixture> diff --git a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Core/Entities/Aggregate.cs b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Core/Entities/Aggregate.cs index d5d146210..ca1ad704b 100644 --- a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Core/Entities/Aggregate.cs +++ b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Core/Entities/Aggregate.cs @@ -1,4 +1,4 @@ -namespace ApplicationLogic.Marten.Core.Entities; +namespace ApplicationLogic.EventStoreDB.Core.Entities; public interface IAggregate { diff --git a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Core/Exceptions/NotFoundException.cs b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Core/Exceptions/NotFoundException.cs index 77586df02..90a06328d 100644 --- a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Core/Exceptions/NotFoundException.cs +++ b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Core/Exceptions/NotFoundException.cs @@ -1,4 +1,4 @@ -namespace ApplicationLogic.Marten.Core.Exceptions; +namespace ApplicationLogic.EventStoreDB.Core.Exceptions; public class NotFoundException: Exception { diff --git a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Core/Marten/DocumentSessionExtensions.cs b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Core/Marten/DocumentSessionExtensions.cs index f5369263c..2f6c9945b 100644 --- a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Core/Marten/DocumentSessionExtensions.cs +++ b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Core/Marten/DocumentSessionExtensions.cs @@ -1,7 +1,7 @@ -using ApplicationLogic.Marten.Core.Entities; +using ApplicationLogic.EventStoreDB.Core.Entities; using Marten; -namespace ApplicationLogic.Marten.Core.Marten; +namespace ApplicationLogic.EventStoreDB.Core.Marten; public static class DocumentSessionExtensions { diff --git a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Core/Marten/EventMappings.cs b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Core/Marten/EventMappings.cs index 53865724d..fafa5cedd 100644 --- a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Core/Marten/EventMappings.cs +++ b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Core/Marten/EventMappings.cs @@ -1,6 +1,6 @@ using Marten; -namespace ApplicationLogic.Marten.Core.Marten; +namespace ApplicationLogic.EventStoreDB.Core.Marten; public static class EventMappings { diff --git a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Immutable/Pricing/PricingCalculator.cs b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Immutable/Pricing/PricingCalculator.cs index c999ee055..bd6674ca5 100644 --- a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Immutable/Pricing/PricingCalculator.cs +++ b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Immutable/Pricing/PricingCalculator.cs @@ -1,6 +1,4 @@ -using ApplicationLogic.Marten.Immutable.ShoppingCarts; - -namespace ApplicationLogic.Marten.Immutable.Pricing; +namespace ApplicationLogic.EventStoreDB.Immutable.Pricing; public interface IProductPriceCalculator { diff --git a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Immutable/Pricing/ProductItems.cs b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Immutable/Pricing/ProductItems.cs index 1fc2ef71e..9d7fe42b0 100644 --- a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Immutable/Pricing/ProductItems.cs +++ b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Immutable/Pricing/ProductItems.cs @@ -1,4 +1,4 @@ -namespace ApplicationLogic.Marten.Immutable.Pricing; +namespace ApplicationLogic.EventStoreDB.Immutable.Pricing; public record PricedProductItem( Guid ProductId, diff --git a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/Api.cs b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/Api.cs index e027e0639..143cb8b2b 100644 --- a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/Api.cs +++ b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/Api.cs @@ -1,5 +1,5 @@ -using ApplicationLogic.Marten.Core.Marten; -using ApplicationLogic.Marten.Immutable.Pricing; +using ApplicationLogic.EventStoreDB.Core.Marten; +using ApplicationLogic.EventStoreDB.Immutable.Pricing; using Core.Validation; using Marten; using Marten.Schema.Identity; @@ -7,7 +7,7 @@ using static Microsoft.AspNetCore.Http.TypedResults; using static System.DateTimeOffset; -namespace ApplicationLogic.Marten.Immutable.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Immutable.ShoppingCarts; using static ShoppingCartService; using static ShoppingCartCommand; diff --git a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/Configure.cs b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/Configure.cs index c79e79181..fcded5740 100644 --- a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/Configure.cs +++ b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/Configure.cs @@ -1,8 +1,8 @@ -using ApplicationLogic.Marten.Core.Marten; -using ApplicationLogic.Marten.Immutable.Pricing; +using ApplicationLogic.EventStoreDB.Core.Marten; +using ApplicationLogic.EventStoreDB.Immutable.Pricing; using Marten; -namespace ApplicationLogic.Marten.Immutable.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Immutable.ShoppingCarts; using static ShoppingCartEvent; public static class Configure diff --git a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/ShoppingCart.cs b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/ShoppingCart.cs index b8356e553..7224ea4b0 100644 --- a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/ShoppingCart.cs +++ b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/ShoppingCart.cs @@ -1,6 +1,6 @@ -using ApplicationLogic.Marten.Immutable.Pricing; +using ApplicationLogic.EventStoreDB.Immutable.Pricing; -namespace ApplicationLogic.Marten.Immutable.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Immutable.ShoppingCarts; using static ShoppingCartEvent; // EVENTS diff --git a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/ShoppingCartService.cs b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/ShoppingCartService.cs index d19cde607..27cbd9bbb 100644 --- a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/ShoppingCartService.cs +++ b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/ShoppingCartService.cs @@ -1,7 +1,6 @@ -using ApplicationLogic.Marten.Immutable.Pricing; -using Core.Validation; +using ApplicationLogic.EventStoreDB.Immutable.Pricing; -namespace ApplicationLogic.Marten.Immutable.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Immutable.ShoppingCarts; using static ShoppingCartEvent; using static ShoppingCartCommand; diff --git a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mixed/Pricing/PricingCalculator.cs b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mixed/Pricing/PricingCalculator.cs index 304900448..429799f1f 100644 --- a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mixed/Pricing/PricingCalculator.cs +++ b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mixed/Pricing/PricingCalculator.cs @@ -1,4 +1,4 @@ -namespace ApplicationLogic.Marten.Mixed.Pricing; +namespace ApplicationLogic.EventStoreDB.Mixed.Pricing; public interface IProductPriceCalculator { diff --git a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mixed/Pricing/ProductItems.cs b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mixed/Pricing/ProductItems.cs index 108702ca9..c810b45b2 100644 --- a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mixed/Pricing/ProductItems.cs +++ b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mixed/Pricing/ProductItems.cs @@ -1,4 +1,4 @@ -namespace ApplicationLogic.Marten.Mixed.Pricing; +namespace ApplicationLogic.EventStoreDB.Mixed.Pricing; public class PricedProductItem { diff --git a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mixed/ShoppingCarts/Api.cs b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mixed/ShoppingCarts/Api.cs index 340061a2a..a734d1179 100644 --- a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mixed/ShoppingCarts/Api.cs +++ b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mixed/ShoppingCarts/Api.cs @@ -1,5 +1,5 @@ -using ApplicationLogic.Marten.Core.Marten; -using ApplicationLogic.Marten.Mixed.Pricing; +using ApplicationLogic.EventStoreDB.Core.Marten; +using ApplicationLogic.EventStoreDB.Mixed.Pricing; using Core.Validation; using Marten; using Marten.Schema.Identity; @@ -7,7 +7,7 @@ using static Microsoft.AspNetCore.Http.TypedResults; using static System.DateTimeOffset; -namespace ApplicationLogic.Marten.Mixed.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Mixed.ShoppingCarts; public static class Api { public static WebApplication ConfigureMixedShoppingCarts(this WebApplication app) diff --git a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mixed/ShoppingCarts/Configure.cs b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mixed/ShoppingCarts/Configure.cs index 8d90d4700..158a39b55 100644 --- a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mixed/ShoppingCarts/Configure.cs +++ b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mixed/ShoppingCarts/Configure.cs @@ -1,8 +1,8 @@ -using ApplicationLogic.Marten.Core.Marten; -using ApplicationLogic.Marten.Mixed.Pricing; +using ApplicationLogic.EventStoreDB.Core.Marten; +using ApplicationLogic.EventStoreDB.Mixed.Pricing; using Marten; -namespace ApplicationLogic.Marten.Mixed.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Mixed.ShoppingCarts; using static ShoppingCartEvent; public static class Configure diff --git a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mixed/ShoppingCarts/MixedShoppingCart.cs b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mixed/ShoppingCarts/MixedShoppingCart.cs index c16e18260..f36f54305 100644 --- a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mixed/ShoppingCarts/MixedShoppingCart.cs +++ b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mixed/ShoppingCarts/MixedShoppingCart.cs @@ -1,6 +1,6 @@ -using ApplicationLogic.Marten.Mixed.Pricing; +using ApplicationLogic.EventStoreDB.Mixed.Pricing; -namespace ApplicationLogic.Marten.Mixed.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Mixed.ShoppingCarts; using static ShoppingCartEvent; diff --git a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mutable/Pricing/PricingCalculator.cs b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mutable/Pricing/PricingCalculator.cs index c459f7bb4..6801501f8 100644 --- a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mutable/Pricing/PricingCalculator.cs +++ b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mutable/Pricing/PricingCalculator.cs @@ -1,4 +1,4 @@ -namespace ApplicationLogic.Marten.Mutable.Pricing; +namespace ApplicationLogic.EventStoreDB.Mutable.Pricing; public interface IProductPriceCalculator { diff --git a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mutable/Pricing/ProductItems.cs b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mutable/Pricing/ProductItems.cs index 8c98934c7..41b19bbdb 100644 --- a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mutable/Pricing/ProductItems.cs +++ b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mutable/Pricing/ProductItems.cs @@ -1,4 +1,4 @@ -namespace ApplicationLogic.Marten.Mutable.Pricing; +namespace ApplicationLogic.EventStoreDB.Mutable.Pricing; public class PricedProductItem { diff --git a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mutable/ShoppingCarts/Api.cs b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mutable/ShoppingCarts/Api.cs index be7b18493..b3280502d 100644 --- a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mutable/ShoppingCarts/Api.cs +++ b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mutable/ShoppingCarts/Api.cs @@ -1,5 +1,5 @@ -using ApplicationLogic.Marten.Core.Marten; -using ApplicationLogic.Marten.Mutable.Pricing; +using ApplicationLogic.EventStoreDB.Core.Marten; +using ApplicationLogic.EventStoreDB.Mutable.Pricing; using Core.Validation; using Marten; using Marten.Schema.Identity; @@ -7,7 +7,7 @@ using static Microsoft.AspNetCore.Http.TypedResults; using static System.DateTimeOffset; -namespace ApplicationLogic.Marten.Mutable.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Mutable.ShoppingCarts; public static class Api { diff --git a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mutable/ShoppingCarts/Configure.cs b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mutable/ShoppingCarts/Configure.cs index 0632d3777..e33b52b04 100644 --- a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mutable/ShoppingCarts/Configure.cs +++ b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mutable/ShoppingCarts/Configure.cs @@ -1,8 +1,8 @@ -using ApplicationLogic.Marten.Core.Marten; -using ApplicationLogic.Marten.Mutable.Pricing; +using ApplicationLogic.EventStoreDB.Core.Marten; +using ApplicationLogic.EventStoreDB.Mutable.Pricing; using Marten; -namespace ApplicationLogic.Marten.Mutable.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Mutable.ShoppingCarts; using static ShoppingCartEvent; public static class Configure diff --git a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mutable/ShoppingCarts/MutableShoppingCart.cs b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mutable/ShoppingCarts/MutableShoppingCart.cs index 24f8814cd..b80bb6ec5 100644 --- a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mutable/ShoppingCarts/MutableShoppingCart.cs +++ b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Mutable/ShoppingCarts/MutableShoppingCart.cs @@ -1,7 +1,7 @@ -using ApplicationLogic.Marten.Core.Entities; -using ApplicationLogic.Marten.Mutable.Pricing; +using ApplicationLogic.EventStoreDB.Core.Entities; +using ApplicationLogic.EventStoreDB.Mutable.Pricing; -namespace ApplicationLogic.Marten.Mutable.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Mutable.ShoppingCarts; using static ShoppingCartEvent; diff --git a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Program.cs b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Program.cs index cc4b72125..78aaf2bd5 100644 --- a/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Program.cs +++ b/Workshops/IntroductionToEventSourcing/09-ApplicationLogic.EventStoreDB/Program.cs @@ -1,7 +1,7 @@ -using ApplicationLogic.Marten.Core.Exceptions; -using ApplicationLogic.Marten.Immutable.ShoppingCarts; -using ApplicationLogic.Marten.Mixed.ShoppingCarts; -using ApplicationLogic.Marten.Mutable.ShoppingCarts; +using ApplicationLogic.EventStoreDB.Core.Exceptions; +using ApplicationLogic.EventStoreDB.Immutable.ShoppingCarts; +using ApplicationLogic.EventStoreDB.Mixed.ShoppingCarts; +using ApplicationLogic.EventStoreDB.Mutable.ShoppingCarts; using Marten; using Microsoft.AspNetCore.Diagnostics; using Oakton; @@ -68,6 +68,9 @@ return await app.RunOaktonCommands(args); -public partial class Program +namespace ApplicationLogic.EventStoreDB { + public partial class Program + { + } } diff --git a/Workshops/IntroductionToEventSourcing/11-OptimisticConcurrency.EventStoreDB.Tests/Settings.cs b/Workshops/IntroductionToEventSourcing/11-OptimisticConcurrency.EventStoreDB.Tests/Settings.cs index 4ac53ed97..fb97e8178 100644 --- a/Workshops/IntroductionToEventSourcing/11-OptimisticConcurrency.EventStoreDB.Tests/Settings.cs +++ b/Workshops/IntroductionToEventSourcing/11-OptimisticConcurrency.EventStoreDB.Tests/Settings.cs @@ -6,7 +6,7 @@ [assembly: TestFramework("OptimisticConcurrency.Marten.Tests.AssemblyFixture", "OptimisticConcurrency.Marten.Tests")] [assembly: CollectionBehavior(DisableTestParallelization = true)] -namespace OptimisticConcurrency.Marten.Tests; +namespace OptimisticConcurrency.EventStoreDB.Tests; public sealed class AssemblyFixture : XunitTestFramework { diff --git a/Workshops/IntroductionToEventSourcing/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/AddProductItemToShoppingCartTests.cs b/Workshops/IntroductionToEventSourcing/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/AddProductItemToShoppingCartTests.cs index d131793fb..5287a0734 100644 --- a/Workshops/IntroductionToEventSourcing/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/AddProductItemToShoppingCartTests.cs +++ b/Workshops/IntroductionToEventSourcing/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/AddProductItemToShoppingCartTests.cs @@ -3,10 +3,10 @@ using OptimisticConcurrency.Immutable.ShoppingCarts; using Xunit; using static Ogooreck.API.ApiSpecification; -using static OptimisticConcurrency.Marten.Tests.ShoppingCarts.Scenarios; -using static OptimisticConcurrency.Marten.Tests.ShoppingCarts.Fixtures; +using static OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts.Scenarios; +using static OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts.Fixtures; -namespace OptimisticConcurrency.Marten.Tests.ShoppingCarts; +namespace OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts; public class AddProductItemToShoppingCartTests(ApiSpecification api): IClassFixture> diff --git a/Workshops/IntroductionToEventSourcing/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/CancelShoppingCartTests.cs b/Workshops/IntroductionToEventSourcing/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/CancelShoppingCartTests.cs index 08e3107f9..67323a01a 100644 --- a/Workshops/IntroductionToEventSourcing/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/CancelShoppingCartTests.cs +++ b/Workshops/IntroductionToEventSourcing/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/CancelShoppingCartTests.cs @@ -3,10 +3,10 @@ using OptimisticConcurrency.Immutable.ShoppingCarts; using Xunit; using static Ogooreck.API.ApiSpecification; -using static OptimisticConcurrency.Marten.Tests.ShoppingCarts.Scenarios; -using static OptimisticConcurrency.Marten.Tests.ShoppingCarts.Fixtures; +using static OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts.Scenarios; +using static OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts.Fixtures; -namespace OptimisticConcurrency.Marten.Tests.ShoppingCarts; +namespace OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts; public class CancelShoppingCartTests(ApiSpecification api): IClassFixture> diff --git a/Workshops/IntroductionToEventSourcing/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/ConfirmShoppingCartTests.cs b/Workshops/IntroductionToEventSourcing/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/ConfirmShoppingCartTests.cs index d02003af6..f1b0982e4 100644 --- a/Workshops/IntroductionToEventSourcing/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/ConfirmShoppingCartTests.cs +++ b/Workshops/IntroductionToEventSourcing/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/ConfirmShoppingCartTests.cs @@ -3,10 +3,10 @@ using OptimisticConcurrency.Immutable.ShoppingCarts; using Xunit; using static Ogooreck.API.ApiSpecification; -using static OptimisticConcurrency.Marten.Tests.ShoppingCarts.Scenarios; -using static OptimisticConcurrency.Marten.Tests.ShoppingCarts.Fixtures; +using static OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts.Scenarios; +using static OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts.Fixtures; -namespace OptimisticConcurrency.Marten.Tests.ShoppingCarts; +namespace OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts; public class ConfirmShoppingCartTests(ApiSpecification api): IClassFixture> diff --git a/Workshops/IntroductionToEventSourcing/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/Fixtures.cs b/Workshops/IntroductionToEventSourcing/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/Fixtures.cs index 7d7b1dfc8..f1fcd7ef1 100644 --- a/Workshops/IntroductionToEventSourcing/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/Fixtures.cs +++ b/Workshops/IntroductionToEventSourcing/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/Fixtures.cs @@ -2,7 +2,7 @@ using OptimisticConcurrency.Immutable.ShoppingCarts; using static Ogooreck.API.ApiSpecification; -namespace OptimisticConcurrency.Marten.Tests.ShoppingCarts; +namespace OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts; public static class Fixtures { diff --git a/Workshops/IntroductionToEventSourcing/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/OpenShoppingCartTests.cs b/Workshops/IntroductionToEventSourcing/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/OpenShoppingCartTests.cs index 213fa74c5..740c501ae 100644 --- a/Workshops/IntroductionToEventSourcing/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/OpenShoppingCartTests.cs +++ b/Workshops/IntroductionToEventSourcing/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/OpenShoppingCartTests.cs @@ -1,10 +1,10 @@ using Ogooreck.API; using Xunit; using static Ogooreck.API.ApiSpecification; -using static OptimisticConcurrency.Marten.Tests.ShoppingCarts.Scenarios; -using static OptimisticConcurrency.Marten.Tests.ShoppingCarts.Fixtures; +using static OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts.Scenarios; +using static OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts.Fixtures; -namespace OptimisticConcurrency.Marten.Tests.ShoppingCarts; +namespace OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts; public class OpenShoppingCartTests(ApiSpecification api): IClassFixture> diff --git a/Workshops/IntroductionToEventSourcing/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/RemoveProductItemFromShoppingCartTests.cs b/Workshops/IntroductionToEventSourcing/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/RemoveProductItemFromShoppingCartTests.cs index ad87a6e2e..f978162cb 100644 --- a/Workshops/IntroductionToEventSourcing/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/RemoveProductItemFromShoppingCartTests.cs +++ b/Workshops/IntroductionToEventSourcing/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/RemoveProductItemFromShoppingCartTests.cs @@ -3,10 +3,10 @@ using OptimisticConcurrency.Immutable.ShoppingCarts; using Xunit; using static Ogooreck.API.ApiSpecification; -using static OptimisticConcurrency.Marten.Tests.ShoppingCarts.Scenarios; -using static OptimisticConcurrency.Marten.Tests.ShoppingCarts.Fixtures; +using static OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts.Scenarios; +using static OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts.Fixtures; -namespace OptimisticConcurrency.Marten.Tests.ShoppingCarts; +namespace OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts; public class RemoveProductItemFromShoppingCartTests(ApiSpecification api): IClassFixture> diff --git a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB.Tests/Settings.cs b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB.Tests/Settings.cs index cc8d5f680..05904a71b 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB.Tests/Settings.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB.Tests/Settings.cs @@ -6,7 +6,7 @@ [assembly: TestFramework("ApplicationLogic.Marten.Tests.AssemblyFixture", "ApplicationLogic.Marten.Tests")] [assembly: CollectionBehavior(DisableTestParallelization = true)] -namespace ApplicationLogic.Marten.Tests; +namespace ApplicationLogic.EventStoreDB.Tests; public sealed class AssemblyFixture : XunitTestFramework { diff --git a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/AddProductItemToShoppingCartTests.cs b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/AddProductItemToShoppingCartTests.cs index 181d2f8bc..141e7ed99 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/AddProductItemToShoppingCartTests.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/AddProductItemToShoppingCartTests.cs @@ -1,12 +1,12 @@ -using ApplicationLogic.Marten.Immutable.ShoppingCarts; +using ApplicationLogic.EventStoreDB.Immutable.ShoppingCarts; using Bogus; using Ogooreck.API; using Xunit; using static Ogooreck.API.ApiSpecification; -using static ApplicationLogic.Marten.Tests.ShoppingCarts.Scenarios; -using static ApplicationLogic.Marten.Tests.ShoppingCarts.Fixtures; +using static ApplicationLogic.EventStoreDB.Tests.ShoppingCarts.Scenarios; +using static ApplicationLogic.EventStoreDB.Tests.ShoppingCarts.Fixtures; -namespace ApplicationLogic.Marten.Tests.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Tests.ShoppingCarts; public class AddProductItemToShoppingCartTests(ApiSpecification api): IClassFixture> diff --git a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/CancelShoppingCartTests.cs b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/CancelShoppingCartTests.cs index 61b66bb12..c407dde32 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/CancelShoppingCartTests.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/CancelShoppingCartTests.cs @@ -1,12 +1,12 @@ -using ApplicationLogic.Marten.Immutable.ShoppingCarts; +using ApplicationLogic.EventStoreDB.Immutable.ShoppingCarts; using Bogus; using Ogooreck.API; using Xunit; using static Ogooreck.API.ApiSpecification; -using static ApplicationLogic.Marten.Tests.ShoppingCarts.Scenarios; -using static ApplicationLogic.Marten.Tests.ShoppingCarts.Fixtures; +using static ApplicationLogic.EventStoreDB.Tests.ShoppingCarts.Scenarios; +using static ApplicationLogic.EventStoreDB.Tests.ShoppingCarts.Fixtures; -namespace ApplicationLogic.Marten.Tests.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Tests.ShoppingCarts; public class CancelShoppingCartTests(ApiSpecification api): IClassFixture> diff --git a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/ConfirmShoppingCartTests.cs b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/ConfirmShoppingCartTests.cs index 443949613..6959930cb 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/ConfirmShoppingCartTests.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/ConfirmShoppingCartTests.cs @@ -1,12 +1,12 @@ -using ApplicationLogic.Marten.Immutable.ShoppingCarts; +using ApplicationLogic.EventStoreDB.Immutable.ShoppingCarts; using Bogus; using Ogooreck.API; using Xunit; using static Ogooreck.API.ApiSpecification; -using static ApplicationLogic.Marten.Tests.ShoppingCarts.Scenarios; -using static ApplicationLogic.Marten.Tests.ShoppingCarts.Fixtures; +using static ApplicationLogic.EventStoreDB.Tests.ShoppingCarts.Scenarios; +using static ApplicationLogic.EventStoreDB.Tests.ShoppingCarts.Fixtures; -namespace ApplicationLogic.Marten.Tests.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Tests.ShoppingCarts; public class ConfirmShoppingCartTests(ApiSpecification api): IClassFixture> diff --git a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/Fixtures.cs b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/Fixtures.cs index 4018d196a..470d00811 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/Fixtures.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/Fixtures.cs @@ -1,8 +1,8 @@ -using ApplicationLogic.Marten.Immutable.ShoppingCarts; +using ApplicationLogic.EventStoreDB.Immutable.ShoppingCarts; using Ogooreck.API; using static Ogooreck.API.ApiSpecification; -namespace ApplicationLogic.Marten.Tests.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Tests.ShoppingCarts; public static class Fixtures { diff --git a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/OpenShoppingCartTests.cs b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/OpenShoppingCartTests.cs index 291f24a6b..655ee0e95 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/OpenShoppingCartTests.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/OpenShoppingCartTests.cs @@ -1,10 +1,10 @@ using Ogooreck.API; using Xunit; using static Ogooreck.API.ApiSpecification; -using static ApplicationLogic.Marten.Tests.ShoppingCarts.Scenarios; -using static ApplicationLogic.Marten.Tests.ShoppingCarts.Fixtures; +using static ApplicationLogic.EventStoreDB.Tests.ShoppingCarts.Scenarios; +using static ApplicationLogic.EventStoreDB.Tests.ShoppingCarts.Fixtures; -namespace ApplicationLogic.Marten.Tests.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Tests.ShoppingCarts; public class OpenShoppingCartTests(ApiSpecification api): IClassFixture> diff --git a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/RemoveProductItemFromShoppingCartTests.cs b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/RemoveProductItemFromShoppingCartTests.cs index de1ad3fc1..22a70c586 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/RemoveProductItemFromShoppingCartTests.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB.Tests/ShoppingCarts/RemoveProductItemFromShoppingCartTests.cs @@ -1,12 +1,12 @@ -using ApplicationLogic.Marten.Immutable.ShoppingCarts; +using ApplicationLogic.EventStoreDB.Immutable.ShoppingCarts; using Bogus; using Ogooreck.API; using Xunit; using static Ogooreck.API.ApiSpecification; -using static ApplicationLogic.Marten.Tests.ShoppingCarts.Scenarios; -using static ApplicationLogic.Marten.Tests.ShoppingCarts.Fixtures; +using static ApplicationLogic.EventStoreDB.Tests.ShoppingCarts.Scenarios; +using static ApplicationLogic.EventStoreDB.Tests.ShoppingCarts.Fixtures; -namespace ApplicationLogic.Marten.Tests.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Tests.ShoppingCarts; public class RemoveProductItemFromShoppingCartTests(ApiSpecification api): IClassFixture> diff --git a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/09-ApplicationLogic.EventStoreDB.csproj b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/09-ApplicationLogic.EventStoreDB.csproj index 3050ca5b0..cdf38ea57 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/09-ApplicationLogic.EventStoreDB.csproj +++ b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/09-ApplicationLogic.EventStoreDB.csproj @@ -5,7 +5,7 @@ enable true enable - ApplicationLogic.Marten + ApplicationLogic.EventStoreDB diff --git a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Core/Entities/Aggregate.cs b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Core/Entities/Aggregate.cs index d5d146210..ca1ad704b 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Core/Entities/Aggregate.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Core/Entities/Aggregate.cs @@ -1,4 +1,4 @@ -namespace ApplicationLogic.Marten.Core.Entities; +namespace ApplicationLogic.EventStoreDB.Core.Entities; public interface IAggregate { diff --git a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Core/Exceptions/NotFoundException.cs b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Core/Exceptions/NotFoundException.cs index 77586df02..90a06328d 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Core/Exceptions/NotFoundException.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Core/Exceptions/NotFoundException.cs @@ -1,4 +1,4 @@ -namespace ApplicationLogic.Marten.Core.Exceptions; +namespace ApplicationLogic.EventStoreDB.Core.Exceptions; public class NotFoundException: Exception { diff --git a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Core/Marten/DocumentSessionExtensions.cs b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Core/Marten/DocumentSessionExtensions.cs index d51da9ae2..c17baa5ef 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Core/Marten/DocumentSessionExtensions.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Core/Marten/DocumentSessionExtensions.cs @@ -1,8 +1,8 @@ -using ApplicationLogic.Marten.Core.Entities; -using ApplicationLogic.Marten.Core.Exceptions; +using ApplicationLogic.EventStoreDB.Core.Entities; +using ApplicationLogic.EventStoreDB.Core.Exceptions; using Marten; -namespace ApplicationLogic.Marten.Core.Marten; +namespace ApplicationLogic.EventStoreDB.Core.Marten; public static class DocumentSessionExtensions { diff --git a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Core/Marten/EventMappings.cs b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Core/Marten/EventMappings.cs index 53865724d..fafa5cedd 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Core/Marten/EventMappings.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Core/Marten/EventMappings.cs @@ -1,6 +1,6 @@ using Marten; -namespace ApplicationLogic.Marten.Core.Marten; +namespace ApplicationLogic.EventStoreDB.Core.Marten; public static class EventMappings { diff --git a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Immutable/Pricing/PricingCalculator.cs b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Immutable/Pricing/PricingCalculator.cs index c999ee055..bd6674ca5 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Immutable/Pricing/PricingCalculator.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Immutable/Pricing/PricingCalculator.cs @@ -1,6 +1,4 @@ -using ApplicationLogic.Marten.Immutable.ShoppingCarts; - -namespace ApplicationLogic.Marten.Immutable.Pricing; +namespace ApplicationLogic.EventStoreDB.Immutable.Pricing; public interface IProductPriceCalculator { diff --git a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Immutable/Pricing/ProductItems.cs b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Immutable/Pricing/ProductItems.cs index 1fc2ef71e..9d7fe42b0 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Immutable/Pricing/ProductItems.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Immutable/Pricing/ProductItems.cs @@ -1,4 +1,4 @@ -namespace ApplicationLogic.Marten.Immutable.Pricing; +namespace ApplicationLogic.EventStoreDB.Immutable.Pricing; public record PricedProductItem( Guid ProductId, diff --git a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/Api.cs b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/Api.cs index e027e0639..143cb8b2b 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/Api.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/Api.cs @@ -1,5 +1,5 @@ -using ApplicationLogic.Marten.Core.Marten; -using ApplicationLogic.Marten.Immutable.Pricing; +using ApplicationLogic.EventStoreDB.Core.Marten; +using ApplicationLogic.EventStoreDB.Immutable.Pricing; using Core.Validation; using Marten; using Marten.Schema.Identity; @@ -7,7 +7,7 @@ using static Microsoft.AspNetCore.Http.TypedResults; using static System.DateTimeOffset; -namespace ApplicationLogic.Marten.Immutable.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Immutable.ShoppingCarts; using static ShoppingCartService; using static ShoppingCartCommand; diff --git a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/Configure.cs b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/Configure.cs index c79e79181..fcded5740 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/Configure.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/Configure.cs @@ -1,8 +1,8 @@ -using ApplicationLogic.Marten.Core.Marten; -using ApplicationLogic.Marten.Immutable.Pricing; +using ApplicationLogic.EventStoreDB.Core.Marten; +using ApplicationLogic.EventStoreDB.Immutable.Pricing; using Marten; -namespace ApplicationLogic.Marten.Immutable.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Immutable.ShoppingCarts; using static ShoppingCartEvent; public static class Configure diff --git a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/ShoppingCart.cs b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/ShoppingCart.cs index b8356e553..7224ea4b0 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/ShoppingCart.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/ShoppingCart.cs @@ -1,6 +1,6 @@ -using ApplicationLogic.Marten.Immutable.Pricing; +using ApplicationLogic.EventStoreDB.Immutable.Pricing; -namespace ApplicationLogic.Marten.Immutable.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Immutable.ShoppingCarts; using static ShoppingCartEvent; // EVENTS diff --git a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/ShoppingCartService.cs b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/ShoppingCartService.cs index d19cde607..27cbd9bbb 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/ShoppingCartService.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Immutable/ShoppingCarts/ShoppingCartService.cs @@ -1,7 +1,6 @@ -using ApplicationLogic.Marten.Immutable.Pricing; -using Core.Validation; +using ApplicationLogic.EventStoreDB.Immutable.Pricing; -namespace ApplicationLogic.Marten.Immutable.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Immutable.ShoppingCarts; using static ShoppingCartEvent; using static ShoppingCartCommand; diff --git a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mixed/Pricing/PricingCalculator.cs b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mixed/Pricing/PricingCalculator.cs index 304900448..429799f1f 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mixed/Pricing/PricingCalculator.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mixed/Pricing/PricingCalculator.cs @@ -1,4 +1,4 @@ -namespace ApplicationLogic.Marten.Mixed.Pricing; +namespace ApplicationLogic.EventStoreDB.Mixed.Pricing; public interface IProductPriceCalculator { diff --git a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mixed/Pricing/ProductItems.cs b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mixed/Pricing/ProductItems.cs index 108702ca9..c810b45b2 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mixed/Pricing/ProductItems.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mixed/Pricing/ProductItems.cs @@ -1,4 +1,4 @@ -namespace ApplicationLogic.Marten.Mixed.Pricing; +namespace ApplicationLogic.EventStoreDB.Mixed.Pricing; public class PricedProductItem { diff --git a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mixed/ShoppingCarts/Api.cs b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mixed/ShoppingCarts/Api.cs index 340061a2a..a734d1179 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mixed/ShoppingCarts/Api.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mixed/ShoppingCarts/Api.cs @@ -1,5 +1,5 @@ -using ApplicationLogic.Marten.Core.Marten; -using ApplicationLogic.Marten.Mixed.Pricing; +using ApplicationLogic.EventStoreDB.Core.Marten; +using ApplicationLogic.EventStoreDB.Mixed.Pricing; using Core.Validation; using Marten; using Marten.Schema.Identity; @@ -7,7 +7,7 @@ using static Microsoft.AspNetCore.Http.TypedResults; using static System.DateTimeOffset; -namespace ApplicationLogic.Marten.Mixed.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Mixed.ShoppingCarts; public static class Api { public static WebApplication ConfigureMixedShoppingCarts(this WebApplication app) diff --git a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mixed/ShoppingCarts/Configure.cs b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mixed/ShoppingCarts/Configure.cs index 8d90d4700..158a39b55 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mixed/ShoppingCarts/Configure.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mixed/ShoppingCarts/Configure.cs @@ -1,8 +1,8 @@ -using ApplicationLogic.Marten.Core.Marten; -using ApplicationLogic.Marten.Mixed.Pricing; +using ApplicationLogic.EventStoreDB.Core.Marten; +using ApplicationLogic.EventStoreDB.Mixed.Pricing; using Marten; -namespace ApplicationLogic.Marten.Mixed.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Mixed.ShoppingCarts; using static ShoppingCartEvent; public static class Configure diff --git a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mixed/ShoppingCarts/MixedShoppingCart.cs b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mixed/ShoppingCarts/MixedShoppingCart.cs index c16e18260..f36f54305 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mixed/ShoppingCarts/MixedShoppingCart.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mixed/ShoppingCarts/MixedShoppingCart.cs @@ -1,6 +1,6 @@ -using ApplicationLogic.Marten.Mixed.Pricing; +using ApplicationLogic.EventStoreDB.Mixed.Pricing; -namespace ApplicationLogic.Marten.Mixed.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Mixed.ShoppingCarts; using static ShoppingCartEvent; diff --git a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mutable/Pricing/PricingCalculator.cs b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mutable/Pricing/PricingCalculator.cs index c459f7bb4..6801501f8 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mutable/Pricing/PricingCalculator.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mutable/Pricing/PricingCalculator.cs @@ -1,4 +1,4 @@ -namespace ApplicationLogic.Marten.Mutable.Pricing; +namespace ApplicationLogic.EventStoreDB.Mutable.Pricing; public interface IProductPriceCalculator { diff --git a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mutable/Pricing/ProductItems.cs b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mutable/Pricing/ProductItems.cs index 8c98934c7..41b19bbdb 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mutable/Pricing/ProductItems.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mutable/Pricing/ProductItems.cs @@ -1,4 +1,4 @@ -namespace ApplicationLogic.Marten.Mutable.Pricing; +namespace ApplicationLogic.EventStoreDB.Mutable.Pricing; public class PricedProductItem { diff --git a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mutable/ShoppingCarts/Api.cs b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mutable/ShoppingCarts/Api.cs index be7b18493..b3280502d 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mutable/ShoppingCarts/Api.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mutable/ShoppingCarts/Api.cs @@ -1,5 +1,5 @@ -using ApplicationLogic.Marten.Core.Marten; -using ApplicationLogic.Marten.Mutable.Pricing; +using ApplicationLogic.EventStoreDB.Core.Marten; +using ApplicationLogic.EventStoreDB.Mutable.Pricing; using Core.Validation; using Marten; using Marten.Schema.Identity; @@ -7,7 +7,7 @@ using static Microsoft.AspNetCore.Http.TypedResults; using static System.DateTimeOffset; -namespace ApplicationLogic.Marten.Mutable.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Mutable.ShoppingCarts; public static class Api { diff --git a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mutable/ShoppingCarts/Configure.cs b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mutable/ShoppingCarts/Configure.cs index 0632d3777..e33b52b04 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mutable/ShoppingCarts/Configure.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mutable/ShoppingCarts/Configure.cs @@ -1,8 +1,8 @@ -using ApplicationLogic.Marten.Core.Marten; -using ApplicationLogic.Marten.Mutable.Pricing; +using ApplicationLogic.EventStoreDB.Core.Marten; +using ApplicationLogic.EventStoreDB.Mutable.Pricing; using Marten; -namespace ApplicationLogic.Marten.Mutable.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Mutable.ShoppingCarts; using static ShoppingCartEvent; public static class Configure diff --git a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mutable/ShoppingCarts/MutableShoppingCart.cs b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mutable/ShoppingCarts/MutableShoppingCart.cs index 24f8814cd..b80bb6ec5 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mutable/ShoppingCarts/MutableShoppingCart.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Mutable/ShoppingCarts/MutableShoppingCart.cs @@ -1,7 +1,7 @@ -using ApplicationLogic.Marten.Core.Entities; -using ApplicationLogic.Marten.Mutable.Pricing; +using ApplicationLogic.EventStoreDB.Core.Entities; +using ApplicationLogic.EventStoreDB.Mutable.Pricing; -namespace ApplicationLogic.Marten.Mutable.ShoppingCarts; +namespace ApplicationLogic.EventStoreDB.Mutable.ShoppingCarts; using static ShoppingCartEvent; diff --git a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Program.cs b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Program.cs index b9690fe34..94b2125bc 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Program.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/09-ApplicationLogic.EventStoreDB/Program.cs @@ -1,7 +1,7 @@ -using ApplicationLogic.Marten.Core.Exceptions; -using ApplicationLogic.Marten.Immutable.ShoppingCarts; -using ApplicationLogic.Marten.Mixed.ShoppingCarts; -using ApplicationLogic.Marten.Mutable.ShoppingCarts; +using ApplicationLogic.EventStoreDB.Core.Exceptions; +using ApplicationLogic.EventStoreDB.Immutable.ShoppingCarts; +using ApplicationLogic.EventStoreDB.Mixed.ShoppingCarts; +using ApplicationLogic.EventStoreDB.Mutable.ShoppingCarts; using Marten; using Microsoft.AspNetCore.Diagnostics; using Oakton; @@ -69,6 +69,9 @@ return await app.RunOaktonCommands(args); -public partial class Program +namespace ApplicationLogic.EventStoreDB { + public partial class Program + { + } } diff --git a/Workshops/IntroductionToEventSourcing/Solved/11-OptimisticConcurrency.EventStoreDB.Tests/Settings.cs b/Workshops/IntroductionToEventSourcing/Solved/11-OptimisticConcurrency.EventStoreDB.Tests/Settings.cs index 4ac53ed97..fb97e8178 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/11-OptimisticConcurrency.EventStoreDB.Tests/Settings.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/11-OptimisticConcurrency.EventStoreDB.Tests/Settings.cs @@ -6,7 +6,7 @@ [assembly: TestFramework("OptimisticConcurrency.Marten.Tests.AssemblyFixture", "OptimisticConcurrency.Marten.Tests")] [assembly: CollectionBehavior(DisableTestParallelization = true)] -namespace OptimisticConcurrency.Marten.Tests; +namespace OptimisticConcurrency.EventStoreDB.Tests; public sealed class AssemblyFixture : XunitTestFramework { diff --git a/Workshops/IntroductionToEventSourcing/Solved/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/AddProductItemToShoppingCartTests.cs b/Workshops/IntroductionToEventSourcing/Solved/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/AddProductItemToShoppingCartTests.cs index b06220437..7dd1824ac 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/AddProductItemToShoppingCartTests.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/AddProductItemToShoppingCartTests.cs @@ -3,10 +3,10 @@ using OptimisticConcurrency.Immutable.ShoppingCarts; using Xunit; using static Ogooreck.API.ApiSpecification; -using static OptimisticConcurrency.Marten.Tests.ShoppingCarts.Scenarios; -using static OptimisticConcurrency.Marten.Tests.ShoppingCarts.Fixtures; +using static OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts.Scenarios; +using static OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts.Fixtures; -namespace OptimisticConcurrency.Marten.Tests.ShoppingCarts; +namespace OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts; public class AddProductItemToShoppingCartTests(ApiSpecification api): IClassFixture> diff --git a/Workshops/IntroductionToEventSourcing/Solved/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/CancelShoppingCartTests.cs b/Workshops/IntroductionToEventSourcing/Solved/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/CancelShoppingCartTests.cs index 03d5a9730..9f27312d0 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/CancelShoppingCartTests.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/CancelShoppingCartTests.cs @@ -3,10 +3,10 @@ using OptimisticConcurrency.Immutable.ShoppingCarts; using Xunit; using static Ogooreck.API.ApiSpecification; -using static OptimisticConcurrency.Marten.Tests.ShoppingCarts.Scenarios; -using static OptimisticConcurrency.Marten.Tests.ShoppingCarts.Fixtures; +using static OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts.Scenarios; +using static OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts.Fixtures; -namespace OptimisticConcurrency.Marten.Tests.ShoppingCarts; +namespace OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts; public class CancelShoppingCartTests(ApiSpecification api): IClassFixture> diff --git a/Workshops/IntroductionToEventSourcing/Solved/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/ConfirmShoppingCartTests.cs b/Workshops/IntroductionToEventSourcing/Solved/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/ConfirmShoppingCartTests.cs index 2a544d352..4468b36f3 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/ConfirmShoppingCartTests.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/ConfirmShoppingCartTests.cs @@ -3,10 +3,10 @@ using OptimisticConcurrency.Immutable.ShoppingCarts; using Xunit; using static Ogooreck.API.ApiSpecification; -using static OptimisticConcurrency.Marten.Tests.ShoppingCarts.Scenarios; -using static OptimisticConcurrency.Marten.Tests.ShoppingCarts.Fixtures; +using static OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts.Scenarios; +using static OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts.Fixtures; -namespace OptimisticConcurrency.Marten.Tests.ShoppingCarts; +namespace OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts; public class ConfirmShoppingCartTests(ApiSpecification api): IClassFixture> diff --git a/Workshops/IntroductionToEventSourcing/Solved/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/Fixtures.cs b/Workshops/IntroductionToEventSourcing/Solved/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/Fixtures.cs index 7d7b1dfc8..f1fcd7ef1 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/Fixtures.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/Fixtures.cs @@ -2,7 +2,7 @@ using OptimisticConcurrency.Immutable.ShoppingCarts; using static Ogooreck.API.ApiSpecification; -namespace OptimisticConcurrency.Marten.Tests.ShoppingCarts; +namespace OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts; public static class Fixtures { diff --git a/Workshops/IntroductionToEventSourcing/Solved/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/OpenShoppingCartTests.cs b/Workshops/IntroductionToEventSourcing/Solved/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/OpenShoppingCartTests.cs index a51763e62..525c11e11 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/OpenShoppingCartTests.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/OpenShoppingCartTests.cs @@ -1,10 +1,10 @@ using Ogooreck.API; using Xunit; using static Ogooreck.API.ApiSpecification; -using static OptimisticConcurrency.Marten.Tests.ShoppingCarts.Scenarios; -using static OptimisticConcurrency.Marten.Tests.ShoppingCarts.Fixtures; +using static OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts.Scenarios; +using static OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts.Fixtures; -namespace OptimisticConcurrency.Marten.Tests.ShoppingCarts; +namespace OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts; public class OpenShoppingCartTests(ApiSpecification api): IClassFixture> diff --git a/Workshops/IntroductionToEventSourcing/Solved/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/RemoveProductItemFromShoppingCartTests.cs b/Workshops/IntroductionToEventSourcing/Solved/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/RemoveProductItemFromShoppingCartTests.cs index ca329c1e4..e34ce87a1 100644 --- a/Workshops/IntroductionToEventSourcing/Solved/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/RemoveProductItemFromShoppingCartTests.cs +++ b/Workshops/IntroductionToEventSourcing/Solved/11-OptimisticConcurrency.EventStoreDB.Tests/ShoppingCarts/RemoveProductItemFromShoppingCartTests.cs @@ -3,10 +3,10 @@ using OptimisticConcurrency.Immutable.ShoppingCarts; using Xunit; using static Ogooreck.API.ApiSpecification; -using static OptimisticConcurrency.Marten.Tests.ShoppingCarts.Scenarios; -using static OptimisticConcurrency.Marten.Tests.ShoppingCarts.Fixtures; +using static OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts.Scenarios; +using static OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts.Fixtures; -namespace OptimisticConcurrency.Marten.Tests.ShoppingCarts; +namespace OptimisticConcurrency.EventStoreDB.Tests.ShoppingCarts; public class RemoveProductItemFromShoppingCartTests(ApiSpecification api): IClassFixture>