diff --git a/.github/workflows/build.dotnet.yml b/.github/workflows/build.dotnet.yml
index a6ed91f97..78c3545b4 100644
--- a/.github/workflows/build.dotnet.yml
+++ b/.github/workflows/build.dotnet.yml
@@ -29,14 +29,7 @@ jobs:
run: dotnet build --configuration Release --no-restore
- name: Run tests
- run: dotnet test --configuration Release --no-build --filter Category!=SkipCI --logger "trx;LogFileName=test-results.trx"
-
- - name: Upload test results
- uses: actions/upload-artifact@v2
- if: success() || failure()
- with:
- name: test-results
- path: '**/test-results.trx'
+ run: dotnet test --configuration Release --no-build --filter Category!=SkipCI
- name: Stop containers
if: always()
diff --git a/CQRS.Tests/CQRS.Tests.csproj b/CQRS.Tests/CQRS.Tests.csproj
index 35ee1ed10..ba1bc3be4 100644
--- a/CQRS.Tests/CQRS.Tests.csproj
+++ b/CQRS.Tests/CQRS.Tests.csproj
@@ -2,10 +2,6 @@
net6.0
- enable
- true
- trx%3bLogFileName=$(MSBuildProjectName).trx
- $(MSBuildThisFileDirectory)/bin/TestResults/$(TargetFramework)
diff --git a/CQRS.Tests/Commands/Commands.cs b/CQRS.Tests/Commands/Commands.cs
index f6f4faf08..c41b1c581 100644
--- a/CQRS.Tests/Commands/Commands.cs
+++ b/CQRS.Tests/Commands/Commands.cs
@@ -1,6 +1,3 @@
-using System.Collections.Generic;
-using System.Threading;
-using System.Threading.Tasks;
using CQRS.Tests.TestsInfrasructure;
using MediatR;
using SharpTestsEx;
diff --git a/CQRS.Tests/Queries/Queries.cs b/CQRS.Tests/Queries/Queries.cs
index dac1fad9a..da7ee3281 100644
--- a/CQRS.Tests/Queries/Queries.cs
+++ b/CQRS.Tests/Queries/Queries.cs
@@ -1,7 +1,3 @@
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
using CQRS.Tests.TestsInfrasructure;
using MediatR;
using SharpTestsEx;
diff --git a/CQRS.Tests/TestsInfrasructure/ServiceLocator.cs b/CQRS.Tests/TestsInfrasructure/ServiceLocator.cs
index c5b7b71b6..77b3a9309 100644
--- a/CQRS.Tests/TestsInfrasructure/ServiceLocator.cs
+++ b/CQRS.Tests/TestsInfrasructure/ServiceLocator.cs
@@ -1,7 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using MediatR;
+using MediatR;
namespace CQRS.Tests.TestsInfrasructure;
diff --git a/Core.Api.Testing/ApiFixture.cs b/Core.Api.Testing/ApiFixture.cs
index 5128aa025..f1699127e 100644
--- a/Core.Api.Testing/ApiFixture.cs
+++ b/Core.Api.Testing/ApiFixture.cs
@@ -1,9 +1,5 @@
-using System;
-using System.Collections.Generic;
using System.Net;
-using System.Net.Http;
using System.Net.Http.Headers;
-using System.Threading.Tasks;
using Core.Serialization.Newtonsoft;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.TestHost;
diff --git a/Core.Api.Testing/Core.Api.Testing.csproj b/Core.Api.Testing/Core.Api.Testing.csproj
index ae8b407d3..0c6c7c1b8 100644
--- a/Core.Api.Testing/Core.Api.Testing.csproj
+++ b/Core.Api.Testing/Core.Api.Testing.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
false
diff --git a/Core.Api.Testing/ResponseExtensions.cs b/Core.Api.Testing/ResponseExtensions.cs
index db194f115..f56460ebf 100644
--- a/Core.Api.Testing/ResponseExtensions.cs
+++ b/Core.Api.Testing/ResponseExtensions.cs
@@ -1,5 +1,3 @@
-using System.Net.Http;
-using System.Threading.Tasks;
using Core.Serialization.Newtonsoft;
using FluentAssertions;
diff --git a/Core.Api.Testing/TestContext.cs b/Core.Api.Testing/TestContext.cs
index 5971fe9a6..f6291f1e3 100644
--- a/Core.Api.Testing/TestContext.cs
+++ b/Core.Api.Testing/TestContext.cs
@@ -1,7 +1,4 @@
-using System;
-using System.Collections.Generic;
using System.Diagnostics;
-using System.Net.Http;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.TestHost;
using Microsoft.Extensions.DependencyInjection;
diff --git a/Core.Api.Testing/TestWebHostBuilder.cs b/Core.Api.Testing/TestWebHostBuilder.cs
index e16fc1d92..332742d2f 100644
--- a/Core.Api.Testing/TestWebHostBuilder.cs
+++ b/Core.Api.Testing/TestWebHostBuilder.cs
@@ -1,7 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using Microsoft.AspNetCore.Hosting;
+using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
diff --git a/Core.ElasticSearch/Config.cs b/Core.ElasticSearch/Config.cs
index 51c6fe8e5..a485ac04a 100644
--- a/Core.ElasticSearch/Config.cs
+++ b/Core.ElasticSearch/Config.cs
@@ -1,4 +1,3 @@
-using System;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Nest;
diff --git a/Core.ElasticSearch/Core.ElasticSearch.csproj b/Core.ElasticSearch/Core.ElasticSearch.csproj
index b257c7260..1a8710e74 100644
--- a/Core.ElasticSearch/Core.ElasticSearch.csproj
+++ b/Core.ElasticSearch/Core.ElasticSearch.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
@@ -15,7 +13,6 @@
-
diff --git a/Core.ElasticSearch/Indices/IndexNameMapper.cs b/Core.ElasticSearch/Indices/IndexNameMapper.cs
index b6cdfc3e8..e3c586559 100644
--- a/Core.ElasticSearch/Indices/IndexNameMapper.cs
+++ b/Core.ElasticSearch/Indices/IndexNameMapper.cs
@@ -1,6 +1,4 @@
-using System;
-using System.Collections.Concurrent;
-using System.Linq;
+using System.Collections.Concurrent;
namespace Core.ElasticSearch.Indices;
diff --git a/Core.ElasticSearch/Projections/ElasticSearchProjection.cs b/Core.ElasticSearch/Projections/ElasticSearchProjection.cs
index 2114f9647..adadfb6cb 100644
--- a/Core.ElasticSearch/Projections/ElasticSearchProjection.cs
+++ b/Core.ElasticSearch/Projections/ElasticSearchProjection.cs
@@ -1,7 +1,4 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
-using Core.ElasticSearch.Indices;
+using Core.ElasticSearch.Indices;
using Core.Events;
using Core.Events.NoMediator;
using Core.Projections;
diff --git a/Core.ElasticSearch/Repository/ElasticSearchRepository.cs b/Core.ElasticSearch/Repository/ElasticSearchRepository.cs
index d66addfbe..96b769d01 100644
--- a/Core.ElasticSearch/Repository/ElasticSearchRepository.cs
+++ b/Core.ElasticSearch/Repository/ElasticSearchRepository.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.ElasticSearch.Indices;
using Core.Events;
using Nest;
diff --git a/Core.EventStoreDB/Core.EventStoreDB.csproj b/Core.EventStoreDB/Core.EventStoreDB.csproj
index 643e7ab3e..e396f2371 100644
--- a/Core.EventStoreDB/Core.EventStoreDB.csproj
+++ b/Core.EventStoreDB/Core.EventStoreDB.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Core.EventStoreDB/Events/AggregateStreamExtensions.cs b/Core.EventStoreDB/Events/AggregateStreamExtensions.cs
index ed220a977..0e626d243 100644
--- a/Core.EventStoreDB/Events/AggregateStreamExtensions.cs
+++ b/Core.EventStoreDB/Events/AggregateStreamExtensions.cs
@@ -1,7 +1,4 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
-using Core.Events;
+using Core.Events;
using Core.EventStoreDB.Serialization;
using Core.Projections;
using EventStore.Client;
diff --git a/Core.EventStoreDB/Events/StreamEventExtensions.cs b/Core.EventStoreDB/Events/StreamEventExtensions.cs
index 322499597..2e4c7089b 100644
--- a/Core.EventStoreDB/Events/StreamEventExtensions.cs
+++ b/Core.EventStoreDB/Events/StreamEventExtensions.cs
@@ -1,5 +1,4 @@
-using System;
-using Core.Events;
+using Core.Events;
using Core.EventStoreDB.Serialization;
using EventStore.Client;
diff --git a/Core.EventStoreDB/OptimisticConcurrency/StreamRevisionProviders.cs b/Core.EventStoreDB/OptimisticConcurrency/StreamRevisionProviders.cs
index 424e1a930..a289c2e46 100644
--- a/Core.EventStoreDB/OptimisticConcurrency/StreamRevisionProviders.cs
+++ b/Core.EventStoreDB/OptimisticConcurrency/StreamRevisionProviders.cs
@@ -1,7 +1,4 @@
-using System;
-using System.Threading.Tasks;
-
-namespace Core.EventStoreDB.OptimisticConcurrency;
+namespace Core.EventStoreDB.OptimisticConcurrency;
public class EventStoreDBOptimisticConcurrencyScope
{
diff --git a/Core.EventStoreDB/Repository/EventStoreDBRepository.cs b/Core.EventStoreDB/Repository/EventStoreDBRepository.cs
index 0e8c8443a..cff7a2bd2 100644
--- a/Core.EventStoreDB/Repository/EventStoreDBRepository.cs
+++ b/Core.EventStoreDB/Repository/EventStoreDBRepository.cs
@@ -1,9 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
-using Core.Aggregates;
+using Core.Aggregates;
using Core.Events;
using Core.EventStoreDB.Events;
using Core.EventStoreDB.Serialization;
diff --git a/Core.EventStoreDB/Repository/RepositoryExtensions.cs b/Core.EventStoreDB/Repository/RepositoryExtensions.cs
index 7b4d44ad7..a632264d8 100644
--- a/Core.EventStoreDB/Repository/RepositoryExtensions.cs
+++ b/Core.EventStoreDB/Repository/RepositoryExtensions.cs
@@ -1,9 +1,5 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Aggregates;
using Core.Exceptions;
-using MediatR;
namespace Core.EventStoreDB.Repository;
diff --git a/Core.EventStoreDB/Subscriptions/EventStoreDBSubscriptionCheckpointRepository.cs b/Core.EventStoreDB/Subscriptions/EventStoreDBSubscriptionCheckpointRepository.cs
index 791dae9a7..b4ce670e2 100644
--- a/Core.EventStoreDB/Subscriptions/EventStoreDBSubscriptionCheckpointRepository.cs
+++ b/Core.EventStoreDB/Subscriptions/EventStoreDBSubscriptionCheckpointRepository.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
-using Core.Events;
+using Core.Events;
using Core.EventStoreDB.Serialization;
using EventStore.Client;
diff --git a/Core.EventStoreDB/Subscriptions/EventStoreDBSubscriptionToAll.cs b/Core.EventStoreDB/Subscriptions/EventStoreDBSubscriptionToAll.cs
index cd023dbad..e4560a028 100644
--- a/Core.EventStoreDB/Subscriptions/EventStoreDBSubscriptionToAll.cs
+++ b/Core.EventStoreDB/Subscriptions/EventStoreDBSubscriptionToAll.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Events;
using Core.Events.NoMediator;
using Core.EventStoreDB.Events;
diff --git a/Core.EventStoreDB/Subscriptions/ISubscriptionCheckpointRepository.cs b/Core.EventStoreDB/Subscriptions/ISubscriptionCheckpointRepository.cs
index 340d6c698..b50186818 100644
--- a/Core.EventStoreDB/Subscriptions/ISubscriptionCheckpointRepository.cs
+++ b/Core.EventStoreDB/Subscriptions/ISubscriptionCheckpointRepository.cs
@@ -1,7 +1,4 @@
-using System.Threading;
-using System.Threading.Tasks;
-
-namespace Core.EventStoreDB.Subscriptions;
+namespace Core.EventStoreDB.Subscriptions;
public interface ISubscriptionCheckpointRepository
{
diff --git a/Core.EventStoreDB/Subscriptions/InMemorySubscriptionCheckpointRepository.cs b/Core.EventStoreDB/Subscriptions/InMemorySubscriptionCheckpointRepository.cs
index f60439ea2..410e36ab1 100644
--- a/Core.EventStoreDB/Subscriptions/InMemorySubscriptionCheckpointRepository.cs
+++ b/Core.EventStoreDB/Subscriptions/InMemorySubscriptionCheckpointRepository.cs
@@ -1,6 +1,4 @@
using System.Collections.Concurrent;
-using System.Threading;
-using System.Threading.Tasks;
namespace Core.EventStoreDB.Subscriptions;
diff --git a/Core.Streaming.Kafka/Config.cs b/Core.Kafka/Config.cs
similarity index 93%
rename from Core.Streaming.Kafka/Config.cs
rename to Core.Kafka/Config.cs
index cbd9b2ba7..499762204 100644
--- a/Core.Streaming.Kafka/Config.cs
+++ b/Core.Kafka/Config.cs
@@ -1,16 +1,15 @@
using Core.BackgroundWorkers;
using Core.Events.External;
-using Core.Streaming.Kafka.Consumers;
-using Core.Streaming.Kafka.Producers;
+using Core.Kafka.Consumers;
+using Core.Kafka.Producers;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.Extensions.Logging;
-namespace Core.Streaming.Kafka;
+namespace Core.Kafka;
public static class Config
{
-
public static IServiceCollection AddKafkaProducer(this IServiceCollection services)
{
//using TryAdd to support mocking, without that it won't be possible to override in tests
diff --git a/Core.Streaming.Kafka/Consumers/KafkaConsumer.cs b/Core.Kafka/Consumers/KafkaConsumer.cs
similarity index 96%
rename from Core.Streaming.Kafka/Consumers/KafkaConsumer.cs
rename to Core.Kafka/Consumers/KafkaConsumer.cs
index b41b151c0..939f9b436 100644
--- a/Core.Streaming.Kafka/Consumers/KafkaConsumer.cs
+++ b/Core.Kafka/Consumers/KafkaConsumer.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Confluent.Kafka;
using Core.Events;
using Core.Events.External;
@@ -11,7 +8,7 @@
using Newtonsoft.Json;
using IEventBus = Core.Events.IEventBus;
-namespace Core.Streaming.Kafka.Consumers;
+namespace Core.Kafka.Consumers;
public class KafkaConsumer: IExternalEventConsumer
{
diff --git a/Core.Streaming.Kafka/Consumers/KafkaConsumerConfig.cs b/Core.Kafka/Consumers/KafkaConsumerConfig.cs
similarity index 92%
rename from Core.Streaming.Kafka/Consumers/KafkaConsumerConfig.cs
rename to Core.Kafka/Consumers/KafkaConsumerConfig.cs
index 61f60fa5f..f386efe9c 100644
--- a/Core.Streaming.Kafka/Consumers/KafkaConsumerConfig.cs
+++ b/Core.Kafka/Consumers/KafkaConsumerConfig.cs
@@ -1,7 +1,7 @@
using Confluent.Kafka;
using Microsoft.Extensions.Configuration;
-namespace Core.Streaming.Kafka.Consumers;
+namespace Core.Kafka.Consumers;
public class KafkaConsumerConfig
{
@@ -17,4 +17,4 @@ public static KafkaConsumerConfig GetKafkaConsumerConfig(this IConfiguration con
{
return configuration.GetSection(DefaultConfigKey).Get();
}
-}
\ No newline at end of file
+}
diff --git a/Core.Streaming.Kafka/Core.Streaming.Kafka.csproj b/Core.Kafka/Core.Kafka.csproj
similarity index 86%
rename from Core.Streaming.Kafka/Core.Streaming.Kafka.csproj
rename to Core.Kafka/Core.Kafka.csproj
index f3bc5bedd..41771c677 100644
--- a/Core.Streaming.Kafka/Core.Streaming.Kafka.csproj
+++ b/Core.Kafka/Core.Kafka.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Core.Streaming.Kafka/Producers/KafkaProducer.cs b/Core.Kafka/Producers/KafkaProducer.cs
similarity index 91%
rename from Core.Streaming.Kafka/Producers/KafkaProducer.cs
rename to Core.Kafka/Producers/KafkaProducer.cs
index 0ea469f7d..1409c21f0 100644
--- a/Core.Streaming.Kafka/Producers/KafkaProducer.cs
+++ b/Core.Kafka/Producers/KafkaProducer.cs
@@ -1,13 +1,10 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Confluent.Kafka;
using Core.Events;
using Core.Events.External;
using Microsoft.Extensions.Configuration;
using Newtonsoft.Json;
-namespace Core.Streaming.Kafka.Producers;
+namespace Core.Kafka.Producers;
public class KafkaProducer: IExternalEventProducer
{
diff --git a/Core.Streaming.Kafka/Producers/KafkaProducerConfig.cs b/Core.Kafka/Producers/KafkaProducerConfig.cs
similarity index 92%
rename from Core.Streaming.Kafka/Producers/KafkaProducerConfig.cs
rename to Core.Kafka/Producers/KafkaProducerConfig.cs
index 0429859b6..eb4e4d02e 100644
--- a/Core.Streaming.Kafka/Producers/KafkaProducerConfig.cs
+++ b/Core.Kafka/Producers/KafkaProducerConfig.cs
@@ -1,7 +1,7 @@
using Confluent.Kafka;
using Microsoft.Extensions.Configuration;
-namespace Core.Streaming.Kafka.Producers;
+namespace Core.Kafka.Producers;
public class KafkaProducerConfig
{
@@ -17,4 +17,4 @@ public static KafkaProducerConfig GetKafkaProducerConfig(this IConfiguration con
{
return configuration.GetSection(DefaultConfigKey).Get();
}
-}
\ No newline at end of file
+}
diff --git a/Core.Marten/Aggregates/AggregateExtensions.cs b/Core.Marten/Aggregates/AggregateExtensions.cs
index fbeace1ee..4c7e83121 100644
--- a/Core.Marten/Aggregates/AggregateExtensions.cs
+++ b/Core.Marten/Aggregates/AggregateExtensions.cs
@@ -1,5 +1,3 @@
-using System.Threading;
-using System.Threading.Tasks;
using Core.Aggregates;
using Core.Events;
using Marten;
diff --git a/Core.Marten/Config.cs b/Core.Marten/Config.cs
index 95ec6137f..2499d1c5f 100644
--- a/Core.Marten/Config.cs
+++ b/Core.Marten/Config.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Threading;
using Core.Ids;
using Core.Marten.Ids;
using Core.Marten.OptimisticConcurrency;
diff --git a/Core.Marten/Core.Marten.csproj b/Core.Marten/Core.Marten.csproj
index 2c1762706..1bf3d9235 100644
--- a/Core.Marten/Core.Marten.csproj
+++ b/Core.Marten/Core.Marten.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Core.Marten/ExternalProjections/MartenExternalProjection.cs b/Core.Marten/ExternalProjections/MartenExternalProjection.cs
index 2945c2cd8..6e8165a27 100644
--- a/Core.Marten/ExternalProjections/MartenExternalProjection.cs
+++ b/Core.Marten/ExternalProjections/MartenExternalProjection.cs
@@ -1,7 +1,4 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
-using Core.Events;
+using Core.Events;
using Core.Events.NoMediator;
using Core.Projections;
using Marten;
diff --git a/Core.Marten/Ids/MartenIdGenerator.cs b/Core.Marten/Ids/MartenIdGenerator.cs
index db5aec12b..cd8061a3c 100644
--- a/Core.Marten/Ids/MartenIdGenerator.cs
+++ b/Core.Marten/Ids/MartenIdGenerator.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Ids;
using Marten;
using Marten.Schema.Identity;
diff --git a/Core.Marten/OptimisticConcurrency/StreamVersionProviders.cs b/Core.Marten/OptimisticConcurrency/StreamVersionProviders.cs
index 14b1994fc..da2ed3713 100644
--- a/Core.Marten/OptimisticConcurrency/StreamVersionProviders.cs
+++ b/Core.Marten/OptimisticConcurrency/StreamVersionProviders.cs
@@ -1,7 +1,4 @@
-using System;
-using System.Threading.Tasks;
-
-namespace Core.Marten.OptimisticConcurrency;
+namespace Core.Marten.OptimisticConcurrency;
public class MartenOptimisticConcurrencyScope
{
diff --git a/Core.Marten/Repository/MartenRepository.cs b/Core.Marten/Repository/MartenRepository.cs
index dfb69754f..3bad03285 100644
--- a/Core.Marten/Repository/MartenRepository.cs
+++ b/Core.Marten/Repository/MartenRepository.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Aggregates;
using Core.Events;
using Marten;
diff --git a/Core.Marten/Repository/RepositoryExtensions.cs b/Core.Marten/Repository/RepositoryExtensions.cs
index c046fae39..508071eb5 100644
--- a/Core.Marten/Repository/RepositoryExtensions.cs
+++ b/Core.Marten/Repository/RepositoryExtensions.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Aggregates;
using Core.Exceptions;
diff --git a/Core.Marten/Serialization/NonDefaultConstructorMartenJsonNetContractResolver.cs b/Core.Marten/Serialization/NonDefaultConstructorMartenJsonNetContractResolver.cs
index c4fd9e463..01dfa05bc 100644
--- a/Core.Marten/Serialization/NonDefaultConstructorMartenJsonNetContractResolver.cs
+++ b/Core.Marten/Serialization/NonDefaultConstructorMartenJsonNetContractResolver.cs
@@ -1,5 +1,4 @@
-using System;
-using Core.Serialization.Newtonsoft;
+using Core.Serialization.Newtonsoft;
using Marten;
using Marten.Services.Json;
using Newtonsoft.Json.Serialization;
diff --git a/Core.Serialization/Core.Serialization.csproj b/Core.Serialization/Core.Serialization.csproj
index 49b54fa72..3d846d88e 100644
--- a/Core.Serialization/Core.Serialization.csproj
+++ b/Core.Serialization/Core.Serialization.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- enable
diff --git a/Core.Testing/AggregateExtensions.cs b/Core.Testing/AggregateExtensions.cs
index c7f09aa35..f1f9f0c36 100644
--- a/Core.Testing/AggregateExtensions.cs
+++ b/Core.Testing/AggregateExtensions.cs
@@ -1,4 +1,3 @@
-using System.Linq;
using Core.Aggregates;
using Core.Events;
diff --git a/Core.Testing/ApiFixture.cs b/Core.Testing/ApiFixture.cs
index 0f56f8939..ecf9c6a5b 100644
--- a/Core.Testing/ApiFixture.cs
+++ b/Core.Testing/ApiFixture.cs
@@ -1,7 +1,3 @@
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Api.Testing;
using Core.Commands;
using Core.Events;
diff --git a/Core.Testing/Core.Testing.csproj b/Core.Testing/Core.Testing.csproj
index 6cef42d5e..9a4431299 100644
--- a/Core.Testing/Core.Testing.csproj
+++ b/Core.Testing/Core.Testing.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
false
diff --git a/Core.Testing/DummyExternalCommandBus.cs b/Core.Testing/DummyExternalCommandBus.cs
index a689c20eb..51633496e 100644
--- a/Core.Testing/DummyExternalCommandBus.cs
+++ b/Core.Testing/DummyExternalCommandBus.cs
@@ -1,6 +1,3 @@
-using System.Collections.Generic;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Commands;
using Core.Requests;
diff --git a/Core.Testing/DummyExternalEventConsumer.cs b/Core.Testing/DummyExternalEventConsumer.cs
index b9e2fb507..622504930 100644
--- a/Core.Testing/DummyExternalEventConsumer.cs
+++ b/Core.Testing/DummyExternalEventConsumer.cs
@@ -1,5 +1,3 @@
-using System.Threading;
-using System.Threading.Tasks;
using Core.Events.External;
namespace Core.Testing;
diff --git a/Core.Testing/DummyExternalEventPublisher.cs b/Core.Testing/DummyExternalEventPublisher.cs
index 31256303f..d54a18969 100644
--- a/Core.Testing/DummyExternalEventPublisher.cs
+++ b/Core.Testing/DummyExternalEventPublisher.cs
@@ -1,6 +1,3 @@
-using System.Collections.Generic;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Events;
using Core.Events.External;
diff --git a/Core.Testing/EventListener.cs b/Core.Testing/EventListener.cs
index 43243d3f9..f08321a88 100644
--- a/Core.Testing/EventListener.cs
+++ b/Core.Testing/EventListener.cs
@@ -1,6 +1,3 @@
-using System.Collections.Generic;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Events;
using MediatR;
diff --git a/Core.Testing/TestWebHostBuilder.cs b/Core.Testing/TestWebHostBuilder.cs
index 4e5f974cc..9ea30f89e 100644
--- a/Core.Testing/TestWebHostBuilder.cs
+++ b/Core.Testing/TestWebHostBuilder.cs
@@ -1,7 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using Microsoft.AspNetCore.Hosting;
+using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
diff --git a/Core.Tests/AggregateWithWhenTests.cs b/Core.Tests/AggregateWithWhenTests.cs
index b0aa46ba3..6f27bb860 100644
--- a/Core.Tests/AggregateWithWhenTests.cs
+++ b/Core.Tests/AggregateWithWhenTests.cs
@@ -1,5 +1,4 @@
-using System;
-using Core.Aggregates;
+using Core.Aggregates;
using FluentAssertions;
using Xunit;
diff --git a/Core.Tests/Core.Tests.csproj b/Core.Tests/Core.Tests.csproj
index f6630b89a..e45a0f594 100644
--- a/Core.Tests/Core.Tests.csproj
+++ b/Core.Tests/Core.Tests.csproj
@@ -2,10 +2,6 @@
net6.0
- enable
- true
- trx%3bLogFileName=$(MSBuildProjectName).trx
- $(MSBuildThisFileDirectory)/bin/TestResults/$(TargetFramework)
diff --git a/Core.WebApi/Core.WebApi.csproj b/Core.WebApi/Core.WebApi.csproj
index e628935ee..42b807f23 100644
--- a/Core.WebApi/Core.WebApi.csproj
+++ b/Core.WebApi/Core.WebApi.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Core.WebApi/Headers/ETagExtensions.cs b/Core.WebApi/Headers/ETagExtensions.cs
index 77aeeb928..246a16aac 100644
--- a/Core.WebApi/Headers/ETagExtensions.cs
+++ b/Core.WebApi/Headers/ETagExtensions.cs
@@ -1,5 +1,4 @@
-using System.Linq;
-using Core.WebApi.Responses;
+using Core.WebApi.Responses;
using Microsoft.AspNetCore.Http;
using Microsoft.Net.Http.Headers;
diff --git a/Core.WebApi/Middlewares/ExceptionHandling/ExceptionHandlingMiddleware.cs b/Core.WebApi/Middlewares/ExceptionHandling/ExceptionHandlingMiddleware.cs
index e94831f43..7c9a40e19 100644
--- a/Core.WebApi/Middlewares/ExceptionHandling/ExceptionHandlingMiddleware.cs
+++ b/Core.WebApi/Middlewares/ExceptionHandling/ExceptionHandlingMiddleware.cs
@@ -1,6 +1,4 @@
-using System;
using System.Net;
-using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
diff --git a/Core.WebApi/Middlewares/ExceptionHandling/ExceptionToHttpStatusMapper.cs b/Core.WebApi/Middlewares/ExceptionHandling/ExceptionToHttpStatusMapper.cs
index aae778091..64468cfe3 100644
--- a/Core.WebApi/Middlewares/ExceptionHandling/ExceptionToHttpStatusMapper.cs
+++ b/Core.WebApi/Middlewares/ExceptionHandling/ExceptionToHttpStatusMapper.cs
@@ -1,4 +1,3 @@
-using System;
using System.ComponentModel.DataAnnotations;
using System.Net;
diff --git a/Core.WebApi/OptimisticConcurrency/OptimisticConcurrencyMiddleware.cs b/Core.WebApi/OptimisticConcurrency/OptimisticConcurrencyMiddleware.cs
index fcee288d3..0b23bc22f 100644
--- a/Core.WebApi/OptimisticConcurrency/OptimisticConcurrencyMiddleware.cs
+++ b/Core.WebApi/OptimisticConcurrency/OptimisticConcurrencyMiddleware.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Linq;
-using System.Net.Http;
-using System.Threading.Tasks;
-using Core.OptimisticConcurrency;
+using Core.OptimisticConcurrency;
using Core.WebApi.Headers;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
diff --git a/Core.WebApi/Swagger/MetadataOperationFilter.cs b/Core.WebApi/Swagger/MetadataOperationFilter.cs
index 7c61e8b14..4107f8e81 100644
--- a/Core.WebApi/Swagger/MetadataOperationFilter.cs
+++ b/Core.WebApi/Swagger/MetadataOperationFilter.cs
@@ -1,7 +1,4 @@
-using System.Collections.Generic;
-using System.Linq;
-using System.Net.Http;
-using Microsoft.OpenApi.Models;
+using Microsoft.OpenApi.Models;
using Swashbuckle.AspNetCore.SwaggerGen;
namespace Core.WebApi.Swagger;
diff --git a/Core.WebApi/Tracing/Correlation/CorrelationIdMiddleware.cs b/Core.WebApi/Tracing/Correlation/CorrelationIdMiddleware.cs
index ffb335c76..d845107a3 100644
--- a/Core.WebApi/Tracing/Correlation/CorrelationIdMiddleware.cs
+++ b/Core.WebApi/Tracing/Correlation/CorrelationIdMiddleware.cs
@@ -1,7 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Threading.Tasks;
-using Microsoft.AspNetCore.Builder;
+using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
diff --git a/Core.WebApi/Tracing/Correlation/GuidCorrelationIdFactory.cs b/Core.WebApi/Tracing/Correlation/GuidCorrelationIdFactory.cs
index 5a1e11b17..ef20ee539 100644
--- a/Core.WebApi/Tracing/Correlation/GuidCorrelationIdFactory.cs
+++ b/Core.WebApi/Tracing/Correlation/GuidCorrelationIdFactory.cs
@@ -1,6 +1,4 @@
-using System;
-
-namespace Core.WebApi.Tracing.Correlation;
+namespace Core.WebApi.Tracing.Correlation;
public record CorrelationId(string Value);
diff --git a/Core/Aggregates/Aggregate.cs b/Core/Aggregates/Aggregate.cs
index e65d26296..0455d2a4f 100644
--- a/Core/Aggregates/Aggregate.cs
+++ b/Core/Aggregates/Aggregate.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Collections.Generic;
using Core.Events;
namespace Core.Aggregates;
diff --git a/Core/Aggregates/IAggregate.cs b/Core/Aggregates/IAggregate.cs
index 9c884aba8..8e30829dd 100644
--- a/Core/Aggregates/IAggregate.cs
+++ b/Core/Aggregates/IAggregate.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Events;
using Core.Projections;
diff --git a/Core/BackgroundWorkers/BackgroundWorker.cs b/Core/BackgroundWorkers/BackgroundWorker.cs
index f1a9397df..b33b0b685 100644
--- a/Core/BackgroundWorkers/BackgroundWorker.cs
+++ b/Core/BackgroundWorkers/BackgroundWorker.cs
@@ -1,7 +1,4 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
-using Microsoft.Extensions.Hosting;
+using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
namespace Core.BackgroundWorkers;
diff --git a/Core/Commands/CommandBus.cs b/Core/Commands/CommandBus.cs
index 66cc05ab2..104d0e683 100644
--- a/Core/Commands/CommandBus.cs
+++ b/Core/Commands/CommandBus.cs
@@ -1,4 +1,3 @@
-using System.Threading.Tasks;
using MediatR;
namespace Core.Commands;
diff --git a/Core/Commands/ICommandBus.cs b/Core/Commands/ICommandBus.cs
index c5d64cda9..ca69d59e3 100644
--- a/Core/Commands/ICommandBus.cs
+++ b/Core/Commands/ICommandBus.cs
@@ -1,5 +1,3 @@
-using System.Threading.Tasks;
-
namespace Core.Commands;
public interface ICommandBus
diff --git a/Core/Core.csproj b/Core/Core.csproj
index 7bd22d3b6..b4578ffe9 100644
--- a/Core/Core.csproj
+++ b/Core/Core.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
@@ -16,11 +14,6 @@
-
-
-
-
-
diff --git a/Core/Events/EventBus.cs b/Core/Events/EventBus.cs
index 0f54ab3e6..1e88706a9 100644
--- a/Core/Events/EventBus.cs
+++ b/Core/Events/EventBus.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Events.External;
using MediatR;
diff --git a/Core/Events/EventTypeMapper.cs b/Core/Events/EventTypeMapper.cs
index 4c34366db..5b0837a6f 100644
--- a/Core/Events/EventTypeMapper.cs
+++ b/Core/Events/EventTypeMapper.cs
@@ -1,5 +1,4 @@
-using System;
-using System.Collections.Concurrent;
+using System.Collections.Concurrent;
using Core.Reflection;
namespace Core.Events;
diff --git a/Core/Events/External/IExternaEventProducer.cs b/Core/Events/External/IExternaEventProducer.cs
index 449a89d1b..fcd0b7ac1 100644
--- a/Core/Events/External/IExternaEventProducer.cs
+++ b/Core/Events/External/IExternaEventProducer.cs
@@ -1,6 +1,3 @@
-using System.Threading;
-using System.Threading.Tasks;
-
namespace Core.Events.External;
public interface IExternalEventProducer
diff --git a/Core/Events/External/IExternalEventConsumer.cs b/Core/Events/External/IExternalEventConsumer.cs
index 1a685325c..f4c2c231f 100644
--- a/Core/Events/External/IExternalEventConsumer.cs
+++ b/Core/Events/External/IExternalEventConsumer.cs
@@ -1,6 +1,3 @@
-using System.Threading;
-using System.Threading.Tasks;
-
namespace Core.Events.External;
public interface IExternalEventConsumer
diff --git a/Core/Events/External/NulloExternalEventProducer.cs b/Core/Events/External/NulloExternalEventProducer.cs
index d36c2918a..6be14c6a2 100644
--- a/Core/Events/External/NulloExternalEventProducer.cs
+++ b/Core/Events/External/NulloExternalEventProducer.cs
@@ -1,6 +1,3 @@
-using System.Threading;
-using System.Threading.Tasks;
-
namespace Core.Events.External;
public class NulloExternalEventProducer : IExternalEventProducer
diff --git a/Core/Events/NoMediator/EventBus.cs b/Core/Events/NoMediator/EventBus.cs
index 3da9e940a..7014b3637 100644
--- a/Core/Events/NoMediator/EventBus.cs
+++ b/Core/Events/NoMediator/EventBus.cs
@@ -1,9 +1,5 @@
-using System;
using System.Collections.Concurrent;
-using System.Linq;
using System.Reflection;
-using System.Threading;
-using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Polly;
diff --git a/Core/Events/NoMediator/INoMediatorEventHandler.cs b/Core/Events/NoMediator/INoMediatorEventHandler.cs
index 0cb32cd45..8896da107 100644
--- a/Core/Events/NoMediator/INoMediatorEventHandler.cs
+++ b/Core/Events/NoMediator/INoMediatorEventHandler.cs
@@ -1,6 +1,3 @@
-using System.Threading;
-using System.Threading.Tasks;
-
namespace Core.Events.NoMediator;
public interface INoMediatorEventHandler
diff --git a/Core/Events/StreamNameMapper.cs b/Core/Events/StreamNameMapper.cs
index 17b01413d..0d5b3ae32 100644
--- a/Core/Events/StreamNameMapper.cs
+++ b/Core/Events/StreamNameMapper.cs
@@ -1,6 +1,4 @@
-using System;
-using System.Collections.Concurrent;
-using System.Linq;
+using System.Collections.Concurrent;
namespace Core.Events;
diff --git a/Core/Exceptions/AggregateNotFoundException.cs b/Core/Exceptions/AggregateNotFoundException.cs
index 90c9e2193..f5cfa519e 100644
--- a/Core/Exceptions/AggregateNotFoundException.cs
+++ b/Core/Exceptions/AggregateNotFoundException.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace Core.Exceptions;
public class AggregateNotFoundException : Exception
diff --git a/Core/Extensions/ListExtensions.cs b/Core/Extensions/ListExtensions.cs
index 81e81815d..3e09c0a08 100644
--- a/Core/Extensions/ListExtensions.cs
+++ b/Core/Extensions/ListExtensions.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-
namespace Core.Extensions;
public static class ListExtensions
diff --git a/Core/Ids/IIdGenerator.cs b/Core/Ids/IIdGenerator.cs
index 33df2a995..b491475ea 100644
--- a/Core/Ids/IIdGenerator.cs
+++ b/Core/Ids/IIdGenerator.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace Core.Ids;
public interface IIdGenerator
diff --git a/Core/Ids/NulloIdGenerator.cs b/Core/Ids/NulloIdGenerator.cs
index 6548f5709..53937bcff 100644
--- a/Core/Ids/NulloIdGenerator.cs
+++ b/Core/Ids/NulloIdGenerator.cs
@@ -1,6 +1,4 @@
-using System;
-
-namespace Core.Ids;
+namespace Core.Ids;
public class NulloIdGenerator : IIdGenerator
{
diff --git a/Core/OptimisticConcurrency/ResourceVersion.cs b/Core/OptimisticConcurrency/ResourceVersion.cs
index 35fc148c5..3b7eb8ce8 100644
--- a/Core/OptimisticConcurrency/ResourceVersion.cs
+++ b/Core/OptimisticConcurrency/ResourceVersion.cs
@@ -1,6 +1,4 @@
-using System;
-
-namespace Core.OptimisticConcurrency;
+namespace Core.OptimisticConcurrency;
public interface IExpectedResourceVersionProvider
{
diff --git a/Core/Queries/IQueryBus.cs b/Core/Queries/IQueryBus.cs
index 2c3a4da09..d0ae4bdee 100644
--- a/Core/Queries/IQueryBus.cs
+++ b/Core/Queries/IQueryBus.cs
@@ -1,5 +1,3 @@
-using System.Threading.Tasks;
-
namespace Core.Queries;
public interface IQueryBus
diff --git a/Core/Queries/QueryBus.cs b/Core/Queries/QueryBus.cs
index a5b727feb..b9db6ba4f 100644
--- a/Core/Queries/QueryBus.cs
+++ b/Core/Queries/QueryBus.cs
@@ -1,4 +1,3 @@
-using System.Threading.Tasks;
using MediatR;
namespace Core.Queries;
diff --git a/Core/Reflection/TypeConverter.cs b/Core/Reflection/TypeConverter.cs
index b7612364f..12d9bf0a8 100644
--- a/Core/Reflection/TypeConverter.cs
+++ b/Core/Reflection/TypeConverter.cs
@@ -1,5 +1,4 @@
-using System;
-using System.ComponentModel;
+using System.ComponentModel;
namespace Core.Reflection;
diff --git a/Core/Reflection/TypeProvider.cs b/Core/Reflection/TypeProvider.cs
index 313956686..06f1976c6 100644
--- a/Core/Reflection/TypeProvider.cs
+++ b/Core/Reflection/TypeProvider.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
diff --git a/Core/Requests/ExternalCommandBus.cs b/Core/Requests/ExternalCommandBus.cs
index 74f2eb2a4..6f06fc5a8 100644
--- a/Core/Requests/ExternalCommandBus.cs
+++ b/Core/Requests/ExternalCommandBus.cs
@@ -1,5 +1,3 @@
-using System.Threading;
-using System.Threading.Tasks;
using Core.Commands;
using RestSharp;
using RestSharp.Serializers;
diff --git a/Core/Responses/PagedListResponse.cs b/Core/Responses/PagedListResponse.cs
index 9de202d00..0ee54e972 100644
--- a/Core/Responses/PagedListResponse.cs
+++ b/Core/Responses/PagedListResponse.cs
@@ -1,6 +1,3 @@
-using System.Collections.Generic;
-using System.Linq;
-
namespace Core.Responses;
public class PagedListResponse
diff --git a/Core/Threading/NoSynchronizationContextScope.cs b/Core/Threading/NoSynchronizationContextScope.cs
index 5151f61e7..585c402fc 100644
--- a/Core/Threading/NoSynchronizationContextScope.cs
+++ b/Core/Threading/NoSynchronizationContextScope.cs
@@ -1,7 +1,4 @@
-using System;
-using System.Threading;
-
-namespace Core.Threading;
+namespace Core.Threading;
public static class NoSynchronizationContextScope
{
diff --git a/Directory.Build.props b/Directory.Build.props
new file mode 100644
index 000000000..1220aa942
--- /dev/null
+++ b/Directory.Build.props
@@ -0,0 +1,8 @@
+
+
+
+ enable
+ true
+ enable
+
+
diff --git a/Dockerfile b/Dockerfile
index e53513acd..6cff34abd 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -8,6 +8,7 @@ FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS builder
# Setup working directory for project
WORKDIR /app
+COPY ./Directory.Build.props ./
COPY ./Core/Core.csproj ./Core/
COPY ./Core.Serialization/Core.Serialization.csproj ./Core.Serialization/
COPY ./Core.Marten/Core.Marten.csproj ./Core.Marten/
diff --git a/EventSourcing.Integration.Tests/EventSourcing.Integration.Tests.csproj b/EventSourcing.Integration.Tests/EventSourcing.Integration.Tests.csproj
index 98b2de429..4b1161e5e 100644
--- a/EventSourcing.Integration.Tests/EventSourcing.Integration.Tests.csproj
+++ b/EventSourcing.Integration.Tests/EventSourcing.Integration.Tests.csproj
@@ -2,10 +2,6 @@
net6.0
- enable
- true
- trx%3bLogFileName=$(MSBuildProjectName).trx
- $(MSBuildThisFileDirectory)/bin/TestResults/$(TargetFramework)
diff --git a/EventSourcing.NetCore.sln b/EventSourcing.NetCore.sln
index 4ad5dd198..522bbeebc 100644
--- a/EventSourcing.NetCore.sln
+++ b/EventSourcing.NetCore.sln
@@ -17,6 +17,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
.editorconfig = .editorconfig
DOCKERFILE = DOCKERFILE
README.md = README.md
+ Directory.Build.props = Directory.Build.props
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Core.Tests", "Core.Tests\Core.Tests.csproj", "{E1B97A7B-97C3-4C14-9BE6-ACE0AF45CE61}"
@@ -73,7 +74,7 @@ EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core.Marten", "Core.Marten\Core.Marten.csproj", "{6EF458DC-00FA-45B0-A722-1ACCEB686CAF}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core.Streaming.Kafka", "Core.Streaming.Kafka\Core.Streaming.Kafka.csproj", "{A1277765-1C96-4307-A09A-A85E211A59F8}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core.Kafka", "Core.Kafka\Core.Kafka.csproj", "{A1277765-1C96-4307-A09A-A85E211A59F8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core", "Core\Core.csproj", "{FBA4E3F4-309C-4D79-8999-306D63313DFD}"
EndProject
@@ -198,7 +199,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CI", "CI", "{F078A982-331A-
ProjectSection(SolutionItems) = preProject
.github\workflows\build.dotnet.yml = .github\workflows\build.dotnet.yml
.github\workflows\publish.docker.yml = .github\workflows\publish.docker.yml
- .github\workflows\build.dotnet.testreport.yml = .github\workflows\build.dotnet.testreport.yml
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Marten.Integration.Tests", "Marten.Integration.Tests\Marten.Integration.Tests.csproj", "{D9D67A6C-FE95-4864-B8F1-BD2689134590}"
diff --git a/Marten.Integration.Tests/CompositeIds/CompositeIdsTests.cs b/Marten.Integration.Tests/CompositeIds/CompositeIdsTests.cs
index 60c7f889d..28f3d5a2a 100644
--- a/Marten.Integration.Tests/CompositeIds/CompositeIdsTests.cs
+++ b/Marten.Integration.Tests/CompositeIds/CompositeIdsTests.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
using FluentAssertions;
using Marten.Integration.Tests.TestsInfrastructure;
using Marten.Schema;
diff --git a/Marten.Integration.Tests/EventStore/Aggregate/EventsAggregation.cs b/Marten.Integration.Tests/EventStore/Aggregate/EventsAggregation.cs
index 0264e6511..b03be2e04 100644
--- a/Marten.Integration.Tests/EventStore/Aggregate/EventsAggregation.cs
+++ b/Marten.Integration.Tests/EventStore/Aggregate/EventsAggregation.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
using Marten.Integration.Tests.TestsInfrastructure;
using SharpTestsEx;
using Xunit;
diff --git a/Marten.Integration.Tests/EventStore/Aggregate/InlineAggregationStorage.cs b/Marten.Integration.Tests/EventStore/Aggregate/InlineAggregationStorage.cs
index a0902d201..ea2c645df 100644
--- a/Marten.Integration.Tests/EventStore/Aggregate/InlineAggregationStorage.cs
+++ b/Marten.Integration.Tests/EventStore/Aggregate/InlineAggregationStorage.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Collections.Generic;
using Marten.Integration.Tests.TestsInfrastructure;
using SharpTestsEx;
using Xunit;
diff --git a/Marten.Integration.Tests/EventStore/Aggregate/OutOfOrder/OutOfOrderProjectionsTest.cs b/Marten.Integration.Tests/EventStore/Aggregate/OutOfOrder/OutOfOrderProjectionsTest.cs
index b77982819..153e7b0f3 100644
--- a/Marten.Integration.Tests/EventStore/Aggregate/OutOfOrder/OutOfOrderProjectionsTest.cs
+++ b/Marten.Integration.Tests/EventStore/Aggregate/OutOfOrder/OutOfOrderProjectionsTest.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Collections.Generic;
using Marten.Integration.Tests.TestsInfrastructure;
using SharpTestsEx;
using Weasel.Core;
diff --git a/Marten.Integration.Tests/EventStore/Aggregate/Reaggregation.cs b/Marten.Integration.Tests/EventStore/Aggregate/Reaggregation.cs
index 6e01c0399..a83b59934 100644
--- a/Marten.Integration.Tests/EventStore/Aggregate/Reaggregation.cs
+++ b/Marten.Integration.Tests/EventStore/Aggregate/Reaggregation.cs
@@ -1,4 +1,3 @@
-using System;
using Marten.Integration.Tests.TestsInfrastructure;
using SharpTestsEx;
using Xunit;
diff --git a/Marten.Integration.Tests/EventStore/Projections/AggregationProjectionsTest.cs b/Marten.Integration.Tests/EventStore/Projections/AggregationProjectionsTest.cs
index 88df9ec42..974df418e 100644
--- a/Marten.Integration.Tests/EventStore/Projections/AggregationProjectionsTest.cs
+++ b/Marten.Integration.Tests/EventStore/Projections/AggregationProjectionsTest.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
using Marten.Events.Aggregation;
using Marten.Integration.Tests.TestsInfrastructure;
using SharpTestsEx;
diff --git a/Marten.Integration.Tests/EventStore/Stream/StreamLoading.cs b/Marten.Integration.Tests/EventStore/Stream/StreamLoading.cs
index b6841d480..4fdebf687 100644
--- a/Marten.Integration.Tests/EventStore/Stream/StreamLoading.cs
+++ b/Marten.Integration.Tests/EventStore/Stream/StreamLoading.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Linq;
using Marten.Integration.Tests.TestsInfrastructure;
using SharpTestsEx;
using Xunit;
diff --git a/Marten.Integration.Tests/EventStore/Stream/StreamLoadingFromExactState.cs b/Marten.Integration.Tests/EventStore/Stream/StreamLoadingFromExactState.cs
index c55881bb4..9e227f94e 100644
--- a/Marten.Integration.Tests/EventStore/Stream/StreamLoadingFromExactState.cs
+++ b/Marten.Integration.Tests/EventStore/Stream/StreamLoadingFromExactState.cs
@@ -1,4 +1,3 @@
-using System;
using Marten.Integration.Tests.TestsInfrastructure;
using SharpTestsEx;
using Xunit;
diff --git a/Marten.Integration.Tests/EventStore/Stream/StreamStarting.cs b/Marten.Integration.Tests/EventStore/Stream/StreamStarting.cs
index 0d60f0081..226302845 100644
--- a/Marten.Integration.Tests/EventStore/Stream/StreamStarting.cs
+++ b/Marten.Integration.Tests/EventStore/Stream/StreamStarting.cs
@@ -1,4 +1,3 @@
-using System;
using Marten.Exceptions;
using Marten.Integration.Tests.TestsInfrastructure;
using SharpTestsEx;
diff --git a/Marten.Integration.Tests/Marten.Integration.Tests.csproj b/Marten.Integration.Tests/Marten.Integration.Tests.csproj
index 65334a653..f26ab51f8 100644
--- a/Marten.Integration.Tests/Marten.Integration.Tests.csproj
+++ b/Marten.Integration.Tests/Marten.Integration.Tests.csproj
@@ -2,10 +2,6 @@
net6.0
- enable
- true
- trx%3bLogFileName=$(MSBuildProjectName).trx
- $(MSBuildThisFileDirectory)/bin/TestResults/$(TargetFramework)
diff --git a/Marten.Integration.Tests/Tenancy/TenancyPerSchema.cs b/Marten.Integration.Tests/Tenancy/TenancyPerSchema.cs
index 0965b679e..5ead59ec1 100644
--- a/Marten.Integration.Tests/Tenancy/TenancyPerSchema.cs
+++ b/Marten.Integration.Tests/Tenancy/TenancyPerSchema.cs
@@ -1,4 +1,3 @@
-using System;
using System.Collections.Concurrent;
using System.Data;
using Microsoft.Extensions.DependencyInjection;
diff --git a/Marten.Integration.Tests/TestsInfrastructure/DocumentSessionProvider.cs b/Marten.Integration.Tests/TestsInfrastructure/DocumentSessionProvider.cs
index 6d756c280..7dd9e2a86 100644
--- a/Marten.Integration.Tests/TestsInfrastructure/DocumentSessionProvider.cs
+++ b/Marten.Integration.Tests/TestsInfrastructure/DocumentSessionProvider.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace Marten.Integration.Tests.TestsInfrastructure;
public static class DocumentSessionProvider
diff --git a/Marten.Integration.Tests/TestsInfrastructure/DocumentStoreProvider.cs b/Marten.Integration.Tests/TestsInfrastructure/DocumentStoreProvider.cs
index e3d7da8c0..d17c70d42 100644
--- a/Marten.Integration.Tests/TestsInfrastructure/DocumentStoreProvider.cs
+++ b/Marten.Integration.Tests/TestsInfrastructure/DocumentStoreProvider.cs
@@ -1,5 +1,4 @@
-using System;
-using Weasel.Core;
+using Weasel.Core;
namespace Marten.Integration.Tests.TestsInfrastructure;
diff --git a/Marten.Integration.Tests/TestsInfrastructure/MartenTest.cs b/Marten.Integration.Tests/TestsInfrastructure/MartenTest.cs
index ec54f9ed7..cd52bda1c 100644
--- a/Marten.Integration.Tests/TestsInfrastructure/MartenTest.cs
+++ b/Marten.Integration.Tests/TestsInfrastructure/MartenTest.cs
@@ -1,4 +1,3 @@
-using System;
using System.Data;
using Marten.Events;
using Npgsql;
diff --git a/MediatR.Tests/Initialization/Initialization.cs b/MediatR.Tests/Initialization/Initialization.cs
index 5e7bda7d8..943c4d0dc 100644
--- a/MediatR.Tests/Initialization/Initialization.cs
+++ b/MediatR.Tests/Initialization/Initialization.cs
@@ -1,7 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using SharpTestsEx;
+using SharpTestsEx;
using Xunit;
namespace MediatR.Tests.Initialization;
diff --git a/MediatR.Tests/MediatR.Tests.csproj b/MediatR.Tests/MediatR.Tests.csproj
index 8930886ce..a12c752b4 100644
--- a/MediatR.Tests/MediatR.Tests.csproj
+++ b/MediatR.Tests/MediatR.Tests.csproj
@@ -2,10 +2,6 @@
net6.0
- enable
- true
- trx%3bLogFileName=$(MSBuildProjectName).trx
- $(MSBuildThisFileDirectory)/bin/TestResults/$(TargetFramework)
diff --git a/MediatR.Tests/Publishing/MoreThanOneHandler.cs b/MediatR.Tests/Publishing/MoreThanOneHandler.cs
index 4c7f4092b..8e3518144 100644
--- a/MediatR.Tests/Publishing/MoreThanOneHandler.cs
+++ b/MediatR.Tests/Publishing/MoreThanOneHandler.cs
@@ -1,8 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
using SharpTestsEx;
using Xunit;
diff --git a/MediatR.Tests/Publishing/NoHandlers.cs b/MediatR.Tests/Publishing/NoHandlers.cs
index dbc8f5512..c22d00ceb 100644
--- a/MediatR.Tests/Publishing/NoHandlers.cs
+++ b/MediatR.Tests/Publishing/NoHandlers.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
using SharpTestsEx;
using Xunit;
diff --git a/MediatR.Tests/Publishing/SingleHandler.cs b/MediatR.Tests/Publishing/SingleHandler.cs
index f6dd65fd4..6d5cac554 100644
--- a/MediatR.Tests/Publishing/SingleHandler.cs
+++ b/MediatR.Tests/Publishing/SingleHandler.cs
@@ -1,8 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
using SharpTestsEx;
using Xunit;
diff --git a/MediatR.Tests/Sending/MoreThanOneHandler.cs b/MediatR.Tests/Sending/MoreThanOneHandler.cs
index 3fa846bfc..3a2573c3e 100644
--- a/MediatR.Tests/Sending/MoreThanOneHandler.cs
+++ b/MediatR.Tests/Sending/MoreThanOneHandler.cs
@@ -1,8 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
using SharpTestsEx;
using Xunit;
diff --git a/MediatR.Tests/Sending/NoHandlers.cs b/MediatR.Tests/Sending/NoHandlers.cs
index 142c57b05..4c184142e 100644
--- a/MediatR.Tests/Sending/NoHandlers.cs
+++ b/MediatR.Tests/Sending/NoHandlers.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
using SharpTestsEx;
using Xunit;
diff --git a/MediatR.Tests/Sending/SingleHandler.cs b/MediatR.Tests/Sending/SingleHandler.cs
index e7ba43eba..6e455ee55 100644
--- a/MediatR.Tests/Sending/SingleHandler.cs
+++ b/MediatR.Tests/Sending/SingleHandler.cs
@@ -1,8 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
using SharpTestsEx;
using Xunit;
diff --git a/Sample/AsyncProjections/SmartHome.Api/Controllers/MotionSensorsController.cs b/Sample/AsyncProjections/SmartHome.Api/Controllers/MotionSensorsController.cs
index c0dc67e2d..0693d5c6f 100644
--- a/Sample/AsyncProjections/SmartHome.Api/Controllers/MotionSensorsController.cs
+++ b/Sample/AsyncProjections/SmartHome.Api/Controllers/MotionSensorsController.cs
@@ -1,5 +1,3 @@
-using System.Collections.Generic;
-using System.Threading.Tasks;
using Core.Commands;
using Core.Ids;
using Core.Queries;
diff --git a/Sample/AsyncProjections/SmartHome.Api/Controllers/TemperatureMeasurementsController.cs b/Sample/AsyncProjections/SmartHome.Api/Controllers/TemperatureMeasurementsController.cs
index 778f89cfe..130ffe7c1 100644
--- a/Sample/AsyncProjections/SmartHome.Api/Controllers/TemperatureMeasurementsController.cs
+++ b/Sample/AsyncProjections/SmartHome.Api/Controllers/TemperatureMeasurementsController.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Threading.Tasks;
using Core.Commands;
using Core.Ids;
using Core.Queries;
diff --git a/Sample/AsyncProjections/SmartHome.Api/Program.cs b/Sample/AsyncProjections/SmartHome.Api/Program.cs
index 60dae6884..e992de772 100644
--- a/Sample/AsyncProjections/SmartHome.Api/Program.cs
+++ b/Sample/AsyncProjections/SmartHome.Api/Program.cs
@@ -1,6 +1,3 @@
-using Microsoft.AspNetCore.Hosting;
-using Microsoft.Extensions.Hosting;
-
namespace SmartHome.Api;
public class Program
diff --git a/Sample/AsyncProjections/SmartHome.Api/SmartHome.Api.csproj b/Sample/AsyncProjections/SmartHome.Api/SmartHome.Api.csproj
index 8822faee0..264f14d1e 100644
--- a/Sample/AsyncProjections/SmartHome.Api/SmartHome.Api.csproj
+++ b/Sample/AsyncProjections/SmartHome.Api/SmartHome.Api.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Sample/AsyncProjections/SmartHome.Api/Startup.cs b/Sample/AsyncProjections/SmartHome.Api/Startup.cs
index 9143177eb..33dabfb98 100644
--- a/Sample/AsyncProjections/SmartHome.Api/Startup.cs
+++ b/Sample/AsyncProjections/SmartHome.Api/Startup.cs
@@ -8,11 +8,6 @@
using Core.WebApi.Swagger;
using Core.WebApi.Tracing.Correlation;
using Marten.Exceptions;
-using Microsoft.AspNetCore.Builder;
-using Microsoft.AspNetCore.Hosting;
-using Microsoft.Extensions.Configuration;
-using Microsoft.Extensions.DependencyInjection;
-using Microsoft.Extensions.Hosting;
using Microsoft.OpenApi.Models;
using SmartHome.Temperature;
diff --git a/Sample/AsyncProjections/SmartHome.Temperature/MotionSensors/GettingMotionSensor/GetMotionSensor.cs b/Sample/AsyncProjections/SmartHome.Temperature/MotionSensors/GettingMotionSensor/GetMotionSensor.cs
index 554f6dcb3..aa2f70696 100644
--- a/Sample/AsyncProjections/SmartHome.Temperature/MotionSensors/GettingMotionSensor/GetMotionSensor.cs
+++ b/Sample/AsyncProjections/SmartHome.Temperature/MotionSensors/GettingMotionSensor/GetMotionSensor.cs
@@ -1,6 +1,3 @@
-using System.Collections.Generic;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Queries;
using Marten;
diff --git a/Sample/AsyncProjections/SmartHome.Temperature/MotionSensors/InstallingMotionSensor/InstallMotionSensor.cs b/Sample/AsyncProjections/SmartHome.Temperature/MotionSensors/InstallingMotionSensor/InstallMotionSensor.cs
index 6771ea2a1..6ffe42cf2 100644
--- a/Sample/AsyncProjections/SmartHome.Temperature/MotionSensors/InstallingMotionSensor/InstallMotionSensor.cs
+++ b/Sample/AsyncProjections/SmartHome.Temperature/MotionSensors/InstallingMotionSensor/InstallMotionSensor.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Commands;
using Core.Marten.Repository;
using MediatR;
diff --git a/Sample/AsyncProjections/SmartHome.Temperature/MotionSensors/InstallingMotionSensor/MotionSensorInstalled.cs b/Sample/AsyncProjections/SmartHome.Temperature/MotionSensors/InstallingMotionSensor/MotionSensorInstalled.cs
index 1af580f96..218bcef41 100644
--- a/Sample/AsyncProjections/SmartHome.Temperature/MotionSensors/InstallingMotionSensor/MotionSensorInstalled.cs
+++ b/Sample/AsyncProjections/SmartHome.Temperature/MotionSensors/InstallingMotionSensor/MotionSensorInstalled.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Events;
namespace SmartHome.Temperature.MotionSensors.InstallingMotionSensor;
diff --git a/Sample/AsyncProjections/SmartHome.Temperature/MotionSensors/MotionSensor.cs b/Sample/AsyncProjections/SmartHome.Temperature/MotionSensors/MotionSensor.cs
index 20cff386f..81ae9c7ff 100644
--- a/Sample/AsyncProjections/SmartHome.Temperature/MotionSensors/MotionSensor.cs
+++ b/Sample/AsyncProjections/SmartHome.Temperature/MotionSensors/MotionSensor.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Aggregates;
using SmartHome.Temperature.MotionSensors.InstallingMotionSensor;
diff --git a/Sample/AsyncProjections/SmartHome.Temperature/MotionSensors/MotionSensorConfig.cs b/Sample/AsyncProjections/SmartHome.Temperature/MotionSensors/MotionSensorConfig.cs
index ae6ff2cf7..7262f0d50 100644
--- a/Sample/AsyncProjections/SmartHome.Temperature/MotionSensors/MotionSensorConfig.cs
+++ b/Sample/AsyncProjections/SmartHome.Temperature/MotionSensors/MotionSensorConfig.cs
@@ -1,4 +1,3 @@
-using System.Collections.Generic;
using Core.Commands;
using Core.Marten.Repository;
using Core.Queries;
diff --git a/Sample/AsyncProjections/SmartHome.Temperature/MotionSensors/RebuildingMotionSensorsViews/RebuildMotionSensorsViews.cs b/Sample/AsyncProjections/SmartHome.Temperature/MotionSensors/RebuildingMotionSensorsViews/RebuildMotionSensorsViews.cs
index 9d2834b32..f28e89f31 100644
--- a/Sample/AsyncProjections/SmartHome.Temperature/MotionSensors/RebuildingMotionSensorsViews/RebuildMotionSensorsViews.cs
+++ b/Sample/AsyncProjections/SmartHome.Temperature/MotionSensors/RebuildingMotionSensorsViews/RebuildMotionSensorsViews.cs
@@ -1,5 +1,3 @@
-using System.Threading;
-using System.Threading.Tasks;
using Core.Commands;
using Marten;
using MediatR;
diff --git a/Sample/AsyncProjections/SmartHome.Temperature/SmartHome.Temperature.csproj b/Sample/AsyncProjections/SmartHome.Temperature/SmartHome.Temperature.csproj
index 3f9060e60..04ccfddde 100644
--- a/Sample/AsyncProjections/SmartHome.Temperature/SmartHome.Temperature.csproj
+++ b/Sample/AsyncProjections/SmartHome.Temperature/SmartHome.Temperature.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Sample/AsyncProjections/SmartHome.Temperature/TemperatureMeasurements/GettingTemperatureMeasurements/GetTemperatureMeasurements.cs b/Sample/AsyncProjections/SmartHome.Temperature/TemperatureMeasurements/GettingTemperatureMeasurements/GetTemperatureMeasurements.cs
index abe67aab4..fa575cce7 100644
--- a/Sample/AsyncProjections/SmartHome.Temperature/TemperatureMeasurements/GettingTemperatureMeasurements/GetTemperatureMeasurements.cs
+++ b/Sample/AsyncProjections/SmartHome.Temperature/TemperatureMeasurements/GettingTemperatureMeasurements/GetTemperatureMeasurements.cs
@@ -1,6 +1,3 @@
-using System.Collections.Generic;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Queries;
using Marten;
diff --git a/Sample/AsyncProjections/SmartHome.Temperature/TemperatureMeasurements/RecordingTemperature/RecordTemperature.cs b/Sample/AsyncProjections/SmartHome.Temperature/TemperatureMeasurements/RecordingTemperature/RecordTemperature.cs
index 17489e591..6fccded5b 100644
--- a/Sample/AsyncProjections/SmartHome.Temperature/TemperatureMeasurements/RecordingTemperature/RecordTemperature.cs
+++ b/Sample/AsyncProjections/SmartHome.Temperature/TemperatureMeasurements/RecordingTemperature/RecordTemperature.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Commands;
using Core.Marten.OptimisticConcurrency;
using Core.Marten.Repository;
diff --git a/Sample/AsyncProjections/SmartHome.Temperature/TemperatureMeasurements/RecordingTemperature/TemperatureRecorded.cs b/Sample/AsyncProjections/SmartHome.Temperature/TemperatureMeasurements/RecordingTemperature/TemperatureRecorded.cs
index 0d5d54c1f..198d8db99 100644
--- a/Sample/AsyncProjections/SmartHome.Temperature/TemperatureMeasurements/RecordingTemperature/TemperatureRecorded.cs
+++ b/Sample/AsyncProjections/SmartHome.Temperature/TemperatureMeasurements/RecordingTemperature/TemperatureRecorded.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Events;
namespace SmartHome.Temperature.TemperatureMeasurements.RecordingTemperature;
diff --git a/Sample/AsyncProjections/SmartHome.Temperature/TemperatureMeasurements/StartingTemperatureMeasurement/StartTemperatureMeasurement.cs b/Sample/AsyncProjections/SmartHome.Temperature/TemperatureMeasurements/StartingTemperatureMeasurement/StartTemperatureMeasurement.cs
index 07dc44682..936f96a87 100644
--- a/Sample/AsyncProjections/SmartHome.Temperature/TemperatureMeasurements/StartingTemperatureMeasurement/StartTemperatureMeasurement.cs
+++ b/Sample/AsyncProjections/SmartHome.Temperature/TemperatureMeasurements/StartingTemperatureMeasurement/StartTemperatureMeasurement.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Commands;
using Core.Marten.Repository;
using MediatR;
diff --git a/Sample/AsyncProjections/SmartHome.Temperature/TemperatureMeasurements/StartingTemperatureMeasurement/TemperatureMeasurementStarted.cs b/Sample/AsyncProjections/SmartHome.Temperature/TemperatureMeasurements/StartingTemperatureMeasurement/TemperatureMeasurementStarted.cs
index d29f06466..ca3b47283 100644
--- a/Sample/AsyncProjections/SmartHome.Temperature/TemperatureMeasurements/StartingTemperatureMeasurement/TemperatureMeasurementStarted.cs
+++ b/Sample/AsyncProjections/SmartHome.Temperature/TemperatureMeasurements/StartingTemperatureMeasurement/TemperatureMeasurementStarted.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Events;
using Newtonsoft.Json;
diff --git a/Sample/AsyncProjections/SmartHome.Temperature/TemperatureMeasurements/TemparatureMeasurement.cs b/Sample/AsyncProjections/SmartHome.Temperature/TemperatureMeasurements/TemparatureMeasurement.cs
index bd4f8c67f..22853b371 100644
--- a/Sample/AsyncProjections/SmartHome.Temperature/TemperatureMeasurements/TemparatureMeasurement.cs
+++ b/Sample/AsyncProjections/SmartHome.Temperature/TemperatureMeasurements/TemparatureMeasurement.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Collections.Generic;
using Core.Aggregates;
using SmartHome.Temperature.TemperatureMeasurements.RecordingTemperature;
using SmartHome.Temperature.TemperatureMeasurements.StartingTemperatureMeasurement;
diff --git a/Sample/AsyncProjections/SmartHome.Temperature/TemperatureMeasurements/TemperatureSummaryConfig.cs b/Sample/AsyncProjections/SmartHome.Temperature/TemperatureMeasurements/TemperatureSummaryConfig.cs
index abcdc0b8a..ad34e62f6 100644
--- a/Sample/AsyncProjections/SmartHome.Temperature/TemperatureMeasurements/TemperatureSummaryConfig.cs
+++ b/Sample/AsyncProjections/SmartHome.Temperature/TemperatureMeasurements/TemperatureSummaryConfig.cs
@@ -1,4 +1,3 @@
-using System.Collections.Generic;
using Core.Commands;
using Core.Marten.Repository;
using Core.Queries;
diff --git a/Sample/ECommerce/Carts/Carts.Api.Tests/Carts.Api.Tests.csproj b/Sample/ECommerce/Carts/Carts.Api.Tests/Carts.Api.Tests.csproj
index 8fb2813a1..70541f37c 100644
--- a/Sample/ECommerce/Carts/Carts.Api.Tests/Carts.Api.Tests.csproj
+++ b/Sample/ECommerce/Carts/Carts.Api.Tests/Carts.Api.Tests.csproj
@@ -2,10 +2,6 @@
net6.0
- enable
- true
- trx%3bLogFileName=$(MSBuildProjectName).trx
- $(MSBuildThisFileDirectory)/bin/TestResults/$(TargetFramework)
diff --git a/Sample/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/AddingProduct/AddProductTests.cs b/Sample/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/AddingProduct/AddProductTests.cs
index 11b7acebd..cec6021d3 100644
--- a/Sample/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/AddingProduct/AddProductTests.cs
+++ b/Sample/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/AddingProduct/AddProductTests.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Linq;
using System.Net;
-using System.Net.Http;
-using System.Threading.Tasks;
using Carts.Api.Requests.Carts;
using Carts.ShoppingCarts;
using Carts.ShoppingCarts.GettingCartById;
diff --git a/Sample/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/Confirming/ConfirmShoppingCartTests.cs b/Sample/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/Confirming/ConfirmShoppingCartTests.cs
index 4382bcc03..fc32f8edf 100644
--- a/Sample/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/Confirming/ConfirmShoppingCartTests.cs
+++ b/Sample/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/Confirming/ConfirmShoppingCartTests.cs
@@ -1,7 +1,4 @@
-using System;
using System.Net;
-using System.Net.Http;
-using System.Threading.Tasks;
using Carts.Api.Requests.Carts;
using Carts.ShoppingCarts;
using Carts.ShoppingCarts.FinalizingCart;
diff --git a/Sample/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/Initializing/InitializeShoppingCartTests.cs b/Sample/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/Initializing/InitializeShoppingCartTests.cs
index bebeeb6dc..14351a07b 100644
--- a/Sample/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/Initializing/InitializeShoppingCartTests.cs
+++ b/Sample/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/Initializing/InitializeShoppingCartTests.cs
@@ -1,7 +1,4 @@
-using System;
using System.Net;
-using System.Net.Http;
-using System.Threading.Tasks;
using Carts.Api.Requests.Carts;
using Carts.ShoppingCarts;
using Carts.ShoppingCarts.GettingCartById;
diff --git a/Sample/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/RemovingProduct/RemoveProductTests.cs b/Sample/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/RemovingProduct/RemoveProductTests.cs
index c819657f0..8eaf2d827 100644
--- a/Sample/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/RemovingProduct/RemoveProductTests.cs
+++ b/Sample/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/RemovingProduct/RemoveProductTests.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Linq;
using System.Net;
-using System.Net.Http;
-using System.Threading.Tasks;
using Carts.Api.Requests.Carts;
using Carts.ShoppingCarts;
using Carts.ShoppingCarts.GettingCartById;
diff --git a/Sample/ECommerce/Carts/Carts.Api/Carts.Api.csproj b/Sample/ECommerce/Carts/Carts.Api/Carts.Api.csproj
index 2e8b644de..bf5c5c42f 100644
--- a/Sample/ECommerce/Carts/Carts.Api/Carts.Api.csproj
+++ b/Sample/ECommerce/Carts/Carts.Api/Carts.Api.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
@@ -17,7 +15,7 @@
-
+
diff --git a/Sample/ECommerce/Carts/Carts.Api/Controllers/ShoppingCartsController.cs b/Sample/ECommerce/Carts/Carts.Api/Controllers/ShoppingCartsController.cs
index 1add6205f..1431e03dd 100644
--- a/Sample/ECommerce/Carts/Carts.Api/Controllers/ShoppingCartsController.cs
+++ b/Sample/ECommerce/Carts/Carts.Api/Controllers/ShoppingCartsController.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Threading.Tasks;
using Carts.Api.Requests.Carts;
using Carts.ShoppingCarts.ConfirmingCart;
using Carts.ShoppingCarts.GettingCartAtVersion;
diff --git a/Sample/ECommerce/Carts/Carts.Api/Program.cs b/Sample/ECommerce/Carts/Carts.Api/Program.cs
index df2bc6d3e..92ea24395 100644
--- a/Sample/ECommerce/Carts/Carts.Api/Program.cs
+++ b/Sample/ECommerce/Carts/Carts.Api/Program.cs
@@ -1,7 +1,3 @@
-using Microsoft.AspNetCore.Hosting;
-using Microsoft.Extensions.Hosting;
-using Microsoft.Extensions.Logging;
-
namespace Carts.Api;
public class Program
diff --git a/Sample/ECommerce/Carts/Carts.Api/Requests/Carts/ShoppingCartsRequests.cs b/Sample/ECommerce/Carts/Carts.Api/Requests/Carts/ShoppingCartsRequests.cs
index 220e61385..b7fdac561 100644
--- a/Sample/ECommerce/Carts/Carts.Api/Requests/Carts/ShoppingCartsRequests.cs
+++ b/Sample/ECommerce/Carts/Carts.Api/Requests/Carts/ShoppingCartsRequests.cs
@@ -1,6 +1,4 @@
-using System;
-
-namespace Carts.Api.Requests.Carts;
+namespace Carts.Api.Requests.Carts;
public record InitializeShoppingCartRequest(
Guid? ClientId
diff --git a/Sample/ECommerce/Carts/Carts.Api/Startup.cs b/Sample/ECommerce/Carts/Carts.Api/Startup.cs
index 2c3c0918e..98e8bb359 100644
--- a/Sample/ECommerce/Carts/Carts.Api/Startup.cs
+++ b/Sample/ECommerce/Carts/Carts.Api/Startup.cs
@@ -1,24 +1,16 @@
using System.Net;
-using System.Runtime.CompilerServices;
using Core;
using Core.Exceptions;
using Core.Marten.OptimisticConcurrency;
using Core.Serialization.Newtonsoft;
-using Core.Streaming.Kafka;
+using Core.Kafka;
using Core.WebApi.Middlewares.ExceptionHandling;
using Core.WebApi.OptimisticConcurrency;
using Core.WebApi.Swagger;
using Core.WebApi.Tracing.Correlation;
using Marten.Exceptions;
-using Microsoft.AspNetCore.Builder;
-using Microsoft.AspNetCore.Hosting;
-using Microsoft.Extensions.Configuration;
-using Microsoft.Extensions.DependencyInjection;
-using Microsoft.Extensions.Hosting;
using Microsoft.OpenApi.Models;
-[assembly: InternalsVisibleTo("Marten.Generated")]
-
namespace Carts.Api;
public class Startup
diff --git a/Sample/ECommerce/Carts/Carts.Tests/Builders/CartBuilder.cs b/Sample/ECommerce/Carts/Carts.Tests/Builders/CartBuilder.cs
index f344a43e7..264793f8a 100644
--- a/Sample/ECommerce/Carts/Carts.Tests/Builders/CartBuilder.cs
+++ b/Sample/ECommerce/Carts/Carts.Tests/Builders/CartBuilder.cs
@@ -1,4 +1,3 @@
-using System;
using Carts.ShoppingCarts;
using Core.Aggregates;
diff --git a/Sample/ECommerce/Carts/Carts.Tests/Carts.Tests.csproj b/Sample/ECommerce/Carts/Carts.Tests/Carts.Tests.csproj
index cabac7268..fdb2e4fdf 100644
--- a/Sample/ECommerce/Carts/Carts.Tests/Carts.Tests.csproj
+++ b/Sample/ECommerce/Carts/Carts.Tests/Carts.Tests.csproj
@@ -2,13 +2,8 @@
net6.0
- enable
- true
- trx%3bLogFileName=$(MSBuildProjectName).trx
- $(MSBuildThisFileDirectory)/bin/TestResults/$(TargetFramework)
-
diff --git a/Sample/ECommerce/Carts/Carts.Tests/Carts/InitializingCart/InitializeCardCommandHandlerTests.cs b/Sample/ECommerce/Carts/Carts.Tests/Carts/InitializingCart/InitializeCardCommandHandlerTests.cs
index 8a0d33c50..be05c9a05 100644
--- a/Sample/ECommerce/Carts/Carts.Tests/Carts/InitializingCart/InitializeCardCommandHandlerTests.cs
+++ b/Sample/ECommerce/Carts/Carts.Tests/Carts/InitializingCart/InitializeCardCommandHandlerTests.cs
@@ -1,7 +1,3 @@
-using System;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
using Carts.ShoppingCarts;
using Carts.ShoppingCarts.InitializingCart;
using Carts.Tests.Extensions.Reservations;
diff --git a/Sample/ECommerce/Carts/Carts.Tests/Carts/InitializingCart/InitializeCartTests.cs b/Sample/ECommerce/Carts/Carts.Tests/Carts/InitializingCart/InitializeCartTests.cs
index adc630ffa..321a7b9fa 100644
--- a/Sample/ECommerce/Carts/Carts.Tests/Carts/InitializingCart/InitializeCartTests.cs
+++ b/Sample/ECommerce/Carts/Carts.Tests/Carts/InitializingCart/InitializeCartTests.cs
@@ -1,4 +1,3 @@
-using System;
using Carts.ShoppingCarts;
using Carts.Tests.Extensions.Reservations;
using Xunit;
diff --git a/Sample/ECommerce/Carts/Carts.Tests/Extensions/Reservations/CartExtensions.cs b/Sample/ECommerce/Carts/Carts.Tests/Extensions/Reservations/CartExtensions.cs
index fe7490f72..f3a175923 100644
--- a/Sample/ECommerce/Carts/Carts.Tests/Extensions/Reservations/CartExtensions.cs
+++ b/Sample/ECommerce/Carts/Carts.Tests/Extensions/Reservations/CartExtensions.cs
@@ -1,4 +1,3 @@
-using System;
using Carts.ShoppingCarts;
using Carts.ShoppingCarts.InitializingCart;
using Core.Testing;
diff --git a/Sample/ECommerce/Carts/Carts.Tests/Stubs/Ids/FakeIdGenerator.cs b/Sample/ECommerce/Carts/Carts.Tests/Stubs/Ids/FakeIdGenerator.cs
index f1d9e6911..e1000574c 100644
--- a/Sample/ECommerce/Carts/Carts.Tests/Stubs/Ids/FakeIdGenerator.cs
+++ b/Sample/ECommerce/Carts/Carts.Tests/Stubs/Ids/FakeIdGenerator.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Ids;
namespace Carts.Tests.Stubs.Ids;
diff --git a/Sample/ECommerce/Carts/Carts.Tests/Stubs/Products/FakeProductPriceCalculator.cs b/Sample/ECommerce/Carts/Carts.Tests/Stubs/Products/FakeProductPriceCalculator.cs
index c95af5f85..8e8bfa633 100644
--- a/Sample/ECommerce/Carts/Carts.Tests/Stubs/Products/FakeProductPriceCalculator.cs
+++ b/Sample/ECommerce/Carts/Carts.Tests/Stubs/Products/FakeProductPriceCalculator.cs
@@ -1,5 +1,3 @@
-using System.Collections.Generic;
-using System.Linq;
using Carts.Pricing;
using Carts.ShoppingCarts.Products;
diff --git a/Sample/ECommerce/Carts/Carts.Tests/Stubs/Repositories/FakeRepository.cs b/Sample/ECommerce/Carts/Carts.Tests/Stubs/Repositories/FakeRepository.cs
index a30f74cc0..b231d2b21 100644
--- a/Sample/ECommerce/Carts/Carts.Tests/Stubs/Repositories/FakeRepository.cs
+++ b/Sample/ECommerce/Carts/Carts.Tests/Stubs/Repositories/FakeRepository.cs
@@ -1,8 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Aggregates;
using Core.Marten.Repository;
diff --git a/Sample/ECommerce/Carts/Carts/Carts.csproj b/Sample/ECommerce/Carts/Carts/Carts.csproj
index bc2b0b2bd..f233215ad 100644
--- a/Sample/ECommerce/Carts/Carts/Carts.csproj
+++ b/Sample/ECommerce/Carts/Carts/Carts.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Sample/ECommerce/Carts/Carts/Config.cs b/Sample/ECommerce/Carts/Carts/Config.cs
index 88108d5c3..8ed802ef0 100644
--- a/Sample/ECommerce/Carts/Carts/Config.cs
+++ b/Sample/ECommerce/Carts/Carts/Config.cs
@@ -1,21 +1,17 @@
-using System.Runtime.CompilerServices;
using Carts.ShoppingCarts;
using Core.Marten;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
-[assembly: InternalsVisibleTo("Marten.Generated")]
-
namespace Carts;
public static class Config
{
- public static IServiceCollection AddCartsModule(this IServiceCollection services, IConfiguration config)
- {
- services.AddMarten(config, options =>
- {
- options.ConfigureCarts();
- });
- return services.AddCarts();
- }
+ public static IServiceCollection AddCartsModule(this IServiceCollection services, IConfiguration config) =>
+ services
+ .AddMarten(config, options =>
+ {
+ options.ConfigureCarts();
+ })
+ .AddCarts();
}
diff --git a/Sample/ECommerce/Carts/Carts/Pricing/IProductPriceCalculator.cs b/Sample/ECommerce/Carts/Carts/Pricing/IProductPriceCalculator.cs
index 0242c0da6..6429af0fd 100644
--- a/Sample/ECommerce/Carts/Carts/Pricing/IProductPriceCalculator.cs
+++ b/Sample/ECommerce/Carts/Carts/Pricing/IProductPriceCalculator.cs
@@ -1,4 +1,3 @@
-using System.Collections.Generic;
using Carts.ShoppingCarts.Products;
namespace Carts.Pricing;
diff --git a/Sample/ECommerce/Carts/Carts/Pricing/RandomProductPriceCalculator.cs b/Sample/ECommerce/Carts/Carts/Pricing/RandomProductPriceCalculator.cs
index 28d19353d..693cbd33a 100644
--- a/Sample/ECommerce/Carts/Carts/Pricing/RandomProductPriceCalculator.cs
+++ b/Sample/ECommerce/Carts/Carts/Pricing/RandomProductPriceCalculator.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
using Carts.ShoppingCarts.Products;
namespace Carts.Pricing;
diff --git a/Sample/ECommerce/Carts/Carts/ShoppingCarts/AddingProduct/AddProduct.cs b/Sample/ECommerce/Carts/Carts/ShoppingCarts/AddingProduct/AddProduct.cs
index 79d36bd5a..9f566451f 100644
--- a/Sample/ECommerce/Carts/Carts/ShoppingCarts/AddingProduct/AddProduct.cs
+++ b/Sample/ECommerce/Carts/Carts/ShoppingCarts/AddingProduct/AddProduct.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Carts.Pricing;
using Carts.ShoppingCarts.Products;
using Core.Commands;
diff --git a/Sample/ECommerce/Carts/Carts/ShoppingCarts/AddingProduct/ProductAdded.cs b/Sample/ECommerce/Carts/Carts/ShoppingCarts/AddingProduct/ProductAdded.cs
index 5967ce666..e5daeddfd 100644
--- a/Sample/ECommerce/Carts/Carts/ShoppingCarts/AddingProduct/ProductAdded.cs
+++ b/Sample/ECommerce/Carts/Carts/ShoppingCarts/AddingProduct/ProductAdded.cs
@@ -1,4 +1,3 @@
-using System;
using Carts.ShoppingCarts.Products;
using Core.Events;
diff --git a/Sample/ECommerce/Carts/Carts/ShoppingCarts/ConfirmingCart/ConfirmShoppingCart.cs b/Sample/ECommerce/Carts/Carts/ShoppingCarts/ConfirmingCart/ConfirmShoppingCart.cs
index 6404c086a..c00feba6b 100644
--- a/Sample/ECommerce/Carts/Carts/ShoppingCarts/ConfirmingCart/ConfirmShoppingCart.cs
+++ b/Sample/ECommerce/Carts/Carts/ShoppingCarts/ConfirmingCart/ConfirmShoppingCart.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Commands;
using Core.Marten.OptimisticConcurrency;
using Core.Marten.Repository;
diff --git a/Sample/ECommerce/Carts/Carts/ShoppingCarts/ConfirmingCart/ShoppingCartConfirmed.cs b/Sample/ECommerce/Carts/Carts/ShoppingCarts/ConfirmingCart/ShoppingCartConfirmed.cs
index 1f829f96a..dc59144b2 100644
--- a/Sample/ECommerce/Carts/Carts/ShoppingCarts/ConfirmingCart/ShoppingCartConfirmed.cs
+++ b/Sample/ECommerce/Carts/Carts/ShoppingCarts/ConfirmingCart/ShoppingCartConfirmed.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Events;
namespace Carts.ShoppingCarts.ConfirmingCart;
diff --git a/Sample/ECommerce/Carts/Carts/ShoppingCarts/FinalizingCart/ShoppingCartFinalized.cs b/Sample/ECommerce/Carts/Carts/ShoppingCarts/FinalizingCart/ShoppingCartFinalized.cs
index 3fb00b1e6..223251659 100644
--- a/Sample/ECommerce/Carts/Carts/ShoppingCarts/FinalizingCart/ShoppingCartFinalized.cs
+++ b/Sample/ECommerce/Carts/Carts/ShoppingCarts/FinalizingCart/ShoppingCartFinalized.cs
@@ -1,8 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
using Carts.ShoppingCarts.ConfirmingCart;
using Carts.ShoppingCarts.Products;
using Core.Events;
diff --git a/Sample/ECommerce/Carts/Carts/ShoppingCarts/GettingCartAtVersion/GetCartAtVersion.cs b/Sample/ECommerce/Carts/Carts/ShoppingCarts/GettingCartAtVersion/GetCartAtVersion.cs
index b8b25d212..ea07d0dc0 100644
--- a/Sample/ECommerce/Carts/Carts/ShoppingCarts/GettingCartAtVersion/GetCartAtVersion.cs
+++ b/Sample/ECommerce/Carts/Carts/ShoppingCarts/GettingCartAtVersion/GetCartAtVersion.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Carts.ShoppingCarts.GettingCartById;
using Core.Exceptions;
using Core.Queries;
diff --git a/Sample/ECommerce/Carts/Carts/ShoppingCarts/GettingCartById/GetCartById.cs b/Sample/ECommerce/Carts/Carts/ShoppingCarts/GettingCartById/GetCartById.cs
index 294fac27d..08ee3e839 100644
--- a/Sample/ECommerce/Carts/Carts/ShoppingCarts/GettingCartById/GetCartById.cs
+++ b/Sample/ECommerce/Carts/Carts/ShoppingCarts/GettingCartById/GetCartById.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Queries;
using Marten;
diff --git a/Sample/ECommerce/Carts/Carts/ShoppingCarts/GettingCartById/ShoppingCartDetails.cs b/Sample/ECommerce/Carts/Carts/ShoppingCarts/GettingCartById/ShoppingCartDetails.cs
index 7ed4fd0f0..f72e342d2 100644
--- a/Sample/ECommerce/Carts/Carts/ShoppingCarts/GettingCartById/ShoppingCartDetails.cs
+++ b/Sample/ECommerce/Carts/Carts/ShoppingCarts/GettingCartById/ShoppingCartDetails.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
using Carts.ShoppingCarts.AddingProduct;
using Carts.ShoppingCarts.ConfirmingCart;
using Carts.ShoppingCarts.InitializingCart;
diff --git a/Sample/ECommerce/Carts/Carts/ShoppingCarts/GettingCartHistory/GetCartHistory.cs b/Sample/ECommerce/Carts/Carts/ShoppingCarts/GettingCartHistory/GetCartHistory.cs
index 9437c0e8f..4376602e4 100644
--- a/Sample/ECommerce/Carts/Carts/ShoppingCarts/GettingCartHistory/GetCartHistory.cs
+++ b/Sample/ECommerce/Carts/Carts/ShoppingCarts/GettingCartHistory/GetCartHistory.cs
@@ -1,7 +1,3 @@
-using System;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Queries;
using Marten;
using Marten.Pagination;
diff --git a/Sample/ECommerce/Carts/Carts/ShoppingCarts/GettingCartHistory/ShoppingCartHistory.cs b/Sample/ECommerce/Carts/Carts/ShoppingCarts/GettingCartHistory/ShoppingCartHistory.cs
index 6fa1b04bb..70eabddd1 100644
--- a/Sample/ECommerce/Carts/Carts/ShoppingCarts/GettingCartHistory/ShoppingCartHistory.cs
+++ b/Sample/ECommerce/Carts/Carts/ShoppingCarts/GettingCartHistory/ShoppingCartHistory.cs
@@ -1,4 +1,3 @@
-using System;
using Carts.ShoppingCarts.AddingProduct;
using Carts.ShoppingCarts.ConfirmingCart;
using Carts.ShoppingCarts.InitializingCart;
diff --git a/Sample/ECommerce/Carts/Carts/ShoppingCarts/GettingCarts/GetCarts.cs b/Sample/ECommerce/Carts/Carts/ShoppingCarts/GettingCarts/GetCarts.cs
index a04e8c509..2cdf20abf 100644
--- a/Sample/ECommerce/Carts/Carts/ShoppingCarts/GettingCarts/GetCarts.cs
+++ b/Sample/ECommerce/Carts/Carts/ShoppingCarts/GettingCarts/GetCarts.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Queries;
using Marten;
using Marten.Pagination;
diff --git a/Sample/ECommerce/Carts/Carts/ShoppingCarts/GettingCarts/ShoppingCartShortInfo.cs b/Sample/ECommerce/Carts/Carts/ShoppingCarts/GettingCarts/ShoppingCartShortInfo.cs
index b91f3fa7e..676326ac4 100644
--- a/Sample/ECommerce/Carts/Carts/ShoppingCarts/GettingCarts/ShoppingCartShortInfo.cs
+++ b/Sample/ECommerce/Carts/Carts/ShoppingCarts/GettingCarts/ShoppingCartShortInfo.cs
@@ -1,4 +1,3 @@
-using System;
using Carts.ShoppingCarts.AddingProduct;
using Carts.ShoppingCarts.ConfirmingCart;
using Carts.ShoppingCarts.InitializingCart;
diff --git a/Sample/ECommerce/Carts/Carts/ShoppingCarts/InitializingCart/InitializeShoppingCart.cs b/Sample/ECommerce/Carts/Carts/ShoppingCarts/InitializingCart/InitializeShoppingCart.cs
index fe3de0024..53047fff2 100644
--- a/Sample/ECommerce/Carts/Carts/ShoppingCarts/InitializingCart/InitializeShoppingCart.cs
+++ b/Sample/ECommerce/Carts/Carts/ShoppingCarts/InitializingCart/InitializeShoppingCart.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Commands;
using Core.Marten.OptimisticConcurrency;
using Core.Marten.Repository;
diff --git a/Sample/ECommerce/Carts/Carts/ShoppingCarts/InitializingCart/ShoppingCartInitialized.cs b/Sample/ECommerce/Carts/Carts/ShoppingCarts/InitializingCart/ShoppingCartInitialized.cs
index 087287873..eb324604e 100644
--- a/Sample/ECommerce/Carts/Carts/ShoppingCarts/InitializingCart/ShoppingCartInitialized.cs
+++ b/Sample/ECommerce/Carts/Carts/ShoppingCarts/InitializingCart/ShoppingCartInitialized.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Events;
namespace Carts.ShoppingCarts.InitializingCart;
diff --git a/Sample/ECommerce/Carts/Carts/ShoppingCarts/Products/PricedProductItem.cs b/Sample/ECommerce/Carts/Carts/ShoppingCarts/Products/PricedProductItem.cs
index db9298e2a..84b47afbf 100644
--- a/Sample/ECommerce/Carts/Carts/ShoppingCarts/Products/PricedProductItem.cs
+++ b/Sample/ECommerce/Carts/Carts/ShoppingCarts/Products/PricedProductItem.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace Carts.ShoppingCarts.Products;
public class PricedProductItem
diff --git a/Sample/ECommerce/Carts/Carts/ShoppingCarts/Products/ProductItem.cs b/Sample/ECommerce/Carts/Carts/ShoppingCarts/Products/ProductItem.cs
index 19f2456bf..76e0b3fe1 100644
--- a/Sample/ECommerce/Carts/Carts/ShoppingCarts/Products/ProductItem.cs
+++ b/Sample/ECommerce/Carts/Carts/ShoppingCarts/Products/ProductItem.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace Carts.ShoppingCarts.Products;
public class ProductItem
diff --git a/Sample/ECommerce/Carts/Carts/ShoppingCarts/RemovingProduct/ProductRemoved.cs b/Sample/ECommerce/Carts/Carts/ShoppingCarts/RemovingProduct/ProductRemoved.cs
index bdd0f8823..695a65469 100644
--- a/Sample/ECommerce/Carts/Carts/ShoppingCarts/RemovingProduct/ProductRemoved.cs
+++ b/Sample/ECommerce/Carts/Carts/ShoppingCarts/RemovingProduct/ProductRemoved.cs
@@ -1,4 +1,3 @@
-using System;
using Carts.ShoppingCarts.Products;
using Core.Events;
diff --git a/Sample/ECommerce/Carts/Carts/ShoppingCarts/RemovingProduct/RemoveProduct.cs b/Sample/ECommerce/Carts/Carts/ShoppingCarts/RemovingProduct/RemoveProduct.cs
index 227e99cfb..fab9e2525 100644
--- a/Sample/ECommerce/Carts/Carts/ShoppingCarts/RemovingProduct/RemoveProduct.cs
+++ b/Sample/ECommerce/Carts/Carts/ShoppingCarts/RemovingProduct/RemoveProduct.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Carts.ShoppingCarts.Products;
using Core.Commands;
using Core.Marten.OptimisticConcurrency;
diff --git a/Sample/ECommerce/Carts/Carts/ShoppingCarts/ShoppingCart.cs b/Sample/ECommerce/Carts/Carts/ShoppingCarts/ShoppingCart.cs
index b3053c46f..4d55846aa 100644
--- a/Sample/ECommerce/Carts/Carts/ShoppingCarts/ShoppingCart.cs
+++ b/Sample/ECommerce/Carts/Carts/ShoppingCarts/ShoppingCart.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
using Carts.Pricing;
using Carts.ShoppingCarts.AddingProduct;
using Carts.ShoppingCarts.ConfirmingCart;
diff --git a/Sample/ECommerce/Orders/Orders.Api.Tests/Orders.Api.Tests.csproj b/Sample/ECommerce/Orders/Orders.Api.Tests/Orders.Api.Tests.csproj
index 6db57f698..fc5a4732e 100644
--- a/Sample/ECommerce/Orders/Orders.Api.Tests/Orders.Api.Tests.csproj
+++ b/Sample/ECommerce/Orders/Orders.Api.Tests/Orders.Api.Tests.csproj
@@ -2,10 +2,6 @@
net6.0
- enable
- true
- trx%3bLogFileName=$(MSBuildProjectName).trx
- $(MSBuildThisFileDirectory)/bin/TestResults/$(TargetFramework)
diff --git a/Sample/ECommerce/Orders/Orders.Api.Tests/Orders/InitializingOrder/InitializeOrderTests.cs b/Sample/ECommerce/Orders/Orders.Api.Tests/Orders/InitializingOrder/InitializeOrderTests.cs
index a459fbe57..b165a9198 100644
--- a/Sample/ECommerce/Orders/Orders.Api.Tests/Orders/InitializingOrder/InitializeOrderTests.cs
+++ b/Sample/ECommerce/Orders/Orders.Api.Tests/Orders/InitializingOrder/InitializeOrderTests.cs
@@ -1,9 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
using System.Net;
-using System.Net.Http;
-using System.Threading.Tasks;
using Core.Api.Testing;
using Core.Testing;
using FluentAssertions;
diff --git a/Sample/ECommerce/Orders/Orders.Api/Controllers/CartsController.cs b/Sample/ECommerce/Orders/Orders.Api/Controllers/CartsController.cs
index 52228c5cf..4122d7d03 100644
--- a/Sample/ECommerce/Orders/Orders.Api/Controllers/CartsController.cs
+++ b/Sample/ECommerce/Orders/Orders.Api/Controllers/CartsController.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Linq;
-using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Core.Commands;
using Core.Ids;
diff --git a/Sample/ECommerce/Orders/Orders.Api/Orders.Api.csproj b/Sample/ECommerce/Orders/Orders.Api/Orders.Api.csproj
index 3ba77b300..17cea00eb 100644
--- a/Sample/ECommerce/Orders/Orders.Api/Orders.Api.csproj
+++ b/Sample/ECommerce/Orders/Orders.Api/Orders.Api.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
@@ -17,7 +15,7 @@
-
+
diff --git a/Sample/ECommerce/Orders/Orders.Api/Program.cs b/Sample/ECommerce/Orders/Orders.Api/Program.cs
index 3d145f41f..4015f76d0 100644
--- a/Sample/ECommerce/Orders/Orders.Api/Program.cs
+++ b/Sample/ECommerce/Orders/Orders.Api/Program.cs
@@ -1,7 +1,3 @@
-using Microsoft.AspNetCore.Hosting;
-using Microsoft.Extensions.Hosting;
-using Microsoft.Extensions.Logging;
-
namespace Orders.Api;
public class Program
diff --git a/Sample/ECommerce/Orders/Orders.Api/Requests/Carts/InitOrderRequest.cs b/Sample/ECommerce/Orders/Orders.Api/Requests/Carts/InitOrderRequest.cs
index 0fc828c80..3b9b6c481 100644
--- a/Sample/ECommerce/Orders/Orders.Api/Requests/Carts/InitOrderRequest.cs
+++ b/Sample/ECommerce/Orders/Orders.Api/Requests/Carts/InitOrderRequest.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-
namespace Orders.Api.Requests.Carts;
public record InitOrderRequest(
diff --git a/Sample/ECommerce/Orders/Orders.Api/Requests/Carts/PricedProductItemRequest.cs b/Sample/ECommerce/Orders/Orders.Api/Requests/Carts/PricedProductItemRequest.cs
index 7291e7c7c..5d0f76d35 100644
--- a/Sample/ECommerce/Orders/Orders.Api/Requests/Carts/PricedProductItemRequest.cs
+++ b/Sample/ECommerce/Orders/Orders.Api/Requests/Carts/PricedProductItemRequest.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace Orders.Api.Requests.Carts;
public class PricedProductItemRequest
diff --git a/Sample/ECommerce/Orders/Orders.Api/Requests/Carts/RecordOrderPaymentRequest.cs b/Sample/ECommerce/Orders/Orders.Api/Requests/Carts/RecordOrderPaymentRequest.cs
index d4e9ed16c..c825ea9ff 100644
--- a/Sample/ECommerce/Orders/Orders.Api/Requests/Carts/RecordOrderPaymentRequest.cs
+++ b/Sample/ECommerce/Orders/Orders.Api/Requests/Carts/RecordOrderPaymentRequest.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace Orders.Api.Requests.Carts;
public class RecordOrderPaymentRequest
diff --git a/Sample/ECommerce/Orders/Orders.Api/Startup.cs b/Sample/ECommerce/Orders/Orders.Api/Startup.cs
index 6e49a28f7..762416ace 100644
--- a/Sample/ECommerce/Orders/Orders.Api/Startup.cs
+++ b/Sample/ECommerce/Orders/Orders.Api/Startup.cs
@@ -3,17 +3,12 @@
using Core.Exceptions;
using Core.Marten.OptimisticConcurrency;
using Core.Serialization.Newtonsoft;
-using Core.Streaming.Kafka;
+using Core.Kafka;
using Core.WebApi.Middlewares.ExceptionHandling;
using Core.WebApi.OptimisticConcurrency;
using Core.WebApi.Swagger;
using Core.WebApi.Tracing.Correlation;
using Marten.Exceptions;
-using Microsoft.AspNetCore.Builder;
-using Microsoft.AspNetCore.Hosting;
-using Microsoft.Extensions.Configuration;
-using Microsoft.Extensions.DependencyInjection;
-using Microsoft.Extensions.Hosting;
using Microsoft.OpenApi.Models;
namespace Orders.Api;
diff --git a/Sample/ECommerce/Orders/Orders.Tests/Orders.Tests.csproj b/Sample/ECommerce/Orders/Orders.Tests/Orders.Tests.csproj
index e3b9f1c54..c6ed55150 100644
--- a/Sample/ECommerce/Orders/Orders.Tests/Orders.Tests.csproj
+++ b/Sample/ECommerce/Orders/Orders.Tests/Orders.Tests.csproj
@@ -2,10 +2,6 @@
net6.0
- enable
- true
- trx%3bLogFileName=$(MSBuildProjectName).trx
- $(MSBuildThisFileDirectory)/bin/TestResults/$(TargetFramework)
diff --git a/Sample/ECommerce/Orders/Orders/Orders.csproj b/Sample/ECommerce/Orders/Orders/Orders.csproj
index 62c3f18ca..8086b09d6 100644
--- a/Sample/ECommerce/Orders/Orders/Orders.csproj
+++ b/Sample/ECommerce/Orders/Orders/Orders.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Sample/ECommerce/Orders/Orders/Orders/CancellingOrder/CancelOrder.cs b/Sample/ECommerce/Orders/Orders/Orders/CancellingOrder/CancelOrder.cs
index deffc9b99..531953b0a 100644
--- a/Sample/ECommerce/Orders/Orders/Orders/CancellingOrder/CancelOrder.cs
+++ b/Sample/ECommerce/Orders/Orders/Orders/CancellingOrder/CancelOrder.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Commands;
using Core.Marten.OptimisticConcurrency;
using Core.Marten.Repository;
diff --git a/Sample/ECommerce/Orders/Orders/Orders/CancellingOrder/OrderCancelled.cs b/Sample/ECommerce/Orders/Orders/Orders/CancellingOrder/OrderCancelled.cs
index 8dad1d478..b2efd9485 100644
--- a/Sample/ECommerce/Orders/Orders/Orders/CancellingOrder/OrderCancelled.cs
+++ b/Sample/ECommerce/Orders/Orders/Orders/CancellingOrder/OrderCancelled.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Events;
namespace Orders.Orders.CancellingOrder;
diff --git a/Sample/ECommerce/Orders/Orders/Orders/CompletingOrder/CompleteOrder.cs b/Sample/ECommerce/Orders/Orders/Orders/CompletingOrder/CompleteOrder.cs
index 9315759f7..50bf1d5d0 100644
--- a/Sample/ECommerce/Orders/Orders/Orders/CompletingOrder/CompleteOrder.cs
+++ b/Sample/ECommerce/Orders/Orders/Orders/CompletingOrder/CompleteOrder.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Commands;
using Core.Marten.OptimisticConcurrency;
using Core.Marten.Repository;
diff --git a/Sample/ECommerce/Orders/Orders/Orders/CompletingOrder/OrderCompleted.cs b/Sample/ECommerce/Orders/Orders/Orders/CompletingOrder/OrderCompleted.cs
index 108e64127..c00280794 100644
--- a/Sample/ECommerce/Orders/Orders/Orders/CompletingOrder/OrderCompleted.cs
+++ b/Sample/ECommerce/Orders/Orders/Orders/CompletingOrder/OrderCompleted.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Events;
namespace Orders.Orders.CompletingOrder;
diff --git a/Sample/ECommerce/Orders/Orders/Orders/InitializingOrder/InitializeOrder.cs b/Sample/ECommerce/Orders/Orders/Orders/InitializingOrder/InitializeOrder.cs
index b5a0fc7b3..0284f6ce1 100644
--- a/Sample/ECommerce/Orders/Orders/Orders/InitializingOrder/InitializeOrder.cs
+++ b/Sample/ECommerce/Orders/Orders/Orders/InitializingOrder/InitializeOrder.cs
@@ -1,7 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Commands;
using Core.Marten.OptimisticConcurrency;
using Core.Marten.Repository;
diff --git a/Sample/ECommerce/Orders/Orders/Orders/InitializingOrder/OrderInitialized.cs b/Sample/ECommerce/Orders/Orders/Orders/InitializingOrder/OrderInitialized.cs
index 41ab7ca6f..c2e0aabcd 100644
--- a/Sample/ECommerce/Orders/Orders/Orders/InitializingOrder/OrderInitialized.cs
+++ b/Sample/ECommerce/Orders/Orders/Orders/InitializingOrder/OrderInitialized.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Collections.Generic;
using Core.Events;
using Orders.Products;
diff --git a/Sample/ECommerce/Orders/Orders/Orders/Order.cs b/Sample/ECommerce/Orders/Orders/Orders/Order.cs
index 99e39c6c4..2778f74be 100644
--- a/Sample/ECommerce/Orders/Orders/Orders/Order.cs
+++ b/Sample/ECommerce/Orders/Orders/Orders/Order.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Collections.Generic;
using Core.Aggregates;
using Orders.Orders.CancellingOrder;
using Orders.Orders.CompletingOrder;
diff --git a/Sample/ECommerce/Orders/Orders/Orders/OrderSaga.cs b/Sample/ECommerce/Orders/Orders/Orders/OrderSaga.cs
index 358641d54..50a7ec985 100644
--- a/Sample/ECommerce/Orders/Orders/Orders/OrderSaga.cs
+++ b/Sample/ECommerce/Orders/Orders/Orders/OrderSaga.cs
@@ -1,6 +1,3 @@
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Commands;
using Core.Events;
using Core.Ids;
diff --git a/Sample/ECommerce/Orders/Orders/Orders/RecordingOrderPayment/OrderPaymentRecorded.cs b/Sample/ECommerce/Orders/Orders/Orders/RecordingOrderPayment/OrderPaymentRecorded.cs
index aaafa9eb2..ac9a8f6ae 100644
--- a/Sample/ECommerce/Orders/Orders/Orders/RecordingOrderPayment/OrderPaymentRecorded.cs
+++ b/Sample/ECommerce/Orders/Orders/Orders/RecordingOrderPayment/OrderPaymentRecorded.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Collections.Generic;
using Core.Events;
using Orders.Products;
diff --git a/Sample/ECommerce/Orders/Orders/Orders/RecordingOrderPayment/RecordOrderPayment.cs b/Sample/ECommerce/Orders/Orders/Orders/RecordingOrderPayment/RecordOrderPayment.cs
index 0f5a4901e..ae0dd4b7a 100644
--- a/Sample/ECommerce/Orders/Orders/Orders/RecordingOrderPayment/RecordOrderPayment.cs
+++ b/Sample/ECommerce/Orders/Orders/Orders/RecordingOrderPayment/RecordOrderPayment.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Commands;
using Core.Marten.OptimisticConcurrency;
using Core.Marten.Repository;
diff --git a/Sample/ECommerce/Orders/Orders/Payments/DiscardingPayment/DiscardPayment.cs b/Sample/ECommerce/Orders/Orders/Payments/DiscardingPayment/DiscardPayment.cs
index 28b411161..69183fb7b 100644
--- a/Sample/ECommerce/Orders/Orders/Payments/DiscardingPayment/DiscardPayment.cs
+++ b/Sample/ECommerce/Orders/Orders/Payments/DiscardingPayment/DiscardPayment.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Commands;
using Core.Requests;
using MediatR;
diff --git a/Sample/ECommerce/Orders/Orders/Payments/FailingPayment/PaymentFailed.cs b/Sample/ECommerce/Orders/Orders/Payments/FailingPayment/PaymentFailed.cs
index 39f6ac4a0..fecacac46 100644
--- a/Sample/ECommerce/Orders/Orders/Payments/FailingPayment/PaymentFailed.cs
+++ b/Sample/ECommerce/Orders/Orders/Payments/FailingPayment/PaymentFailed.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Events;
namespace Orders.Payments.FailingPayment;
diff --git a/Sample/ECommerce/Orders/Orders/Payments/FinalizingPayment/PaymentFinalized.cs b/Sample/ECommerce/Orders/Orders/Payments/FinalizingPayment/PaymentFinalized.cs
index 19b39c662..6752982a2 100644
--- a/Sample/ECommerce/Orders/Orders/Payments/FinalizingPayment/PaymentFinalized.cs
+++ b/Sample/ECommerce/Orders/Orders/Payments/FinalizingPayment/PaymentFinalized.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Events;
namespace Orders.Payments.FinalizingPayment;
diff --git a/Sample/ECommerce/Orders/Orders/Payments/RequestingPayment/RequestPayment.cs b/Sample/ECommerce/Orders/Orders/Payments/RequestingPayment/RequestPayment.cs
index c5bc139c8..73cecc766 100644
--- a/Sample/ECommerce/Orders/Orders/Payments/RequestingPayment/RequestPayment.cs
+++ b/Sample/ECommerce/Orders/Orders/Payments/RequestingPayment/RequestPayment.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Commands;
using Core.Requests;
using MediatR;
diff --git a/Sample/ECommerce/Orders/Orders/Products/PricedProductItem.cs b/Sample/ECommerce/Orders/Orders/Products/PricedProductItem.cs
index f27331e55..18a0783d7 100644
--- a/Sample/ECommerce/Orders/Orders/Products/PricedProductItem.cs
+++ b/Sample/ECommerce/Orders/Orders/Products/PricedProductItem.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace Orders.Products;
public class PricedProductItem
diff --git a/Sample/ECommerce/Orders/Orders/Products/ProductItem.cs b/Sample/ECommerce/Orders/Orders/Products/ProductItem.cs
index 7b090bfdd..3254035bd 100644
--- a/Sample/ECommerce/Orders/Orders/Products/ProductItem.cs
+++ b/Sample/ECommerce/Orders/Orders/Products/ProductItem.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace Orders.Products;
public class ProductItem
diff --git a/Sample/ECommerce/Orders/Orders/Shipments/OutOfStockProduct/ProductWasOutOfStock.cs b/Sample/ECommerce/Orders/Orders/Shipments/OutOfStockProduct/ProductWasOutOfStock.cs
index dd23df0dd..3bf4f4df9 100644
--- a/Sample/ECommerce/Orders/Orders/Shipments/OutOfStockProduct/ProductWasOutOfStock.cs
+++ b/Sample/ECommerce/Orders/Orders/Shipments/OutOfStockProduct/ProductWasOutOfStock.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Collections.Generic;
using Core.Events;
using Orders.Products;
diff --git a/Sample/ECommerce/Orders/Orders/Shipments/SendingPackage/PackageWasSent.cs b/Sample/ECommerce/Orders/Orders/Shipments/SendingPackage/PackageWasSent.cs
index 53c4d0fe7..c9ee164d1 100644
--- a/Sample/ECommerce/Orders/Orders/Shipments/SendingPackage/PackageWasSent.cs
+++ b/Sample/ECommerce/Orders/Orders/Shipments/SendingPackage/PackageWasSent.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Collections.Generic;
using Core.Events;
using Orders.Products;
diff --git a/Sample/ECommerce/Orders/Orders/Shipments/SendingPackage/SendPackage.cs b/Sample/ECommerce/Orders/Orders/Shipments/SendingPackage/SendPackage.cs
index 71911a345..636e9bcf9 100644
--- a/Sample/ECommerce/Orders/Orders/Shipments/SendingPackage/SendPackage.cs
+++ b/Sample/ECommerce/Orders/Orders/Shipments/SendingPackage/SendPackage.cs
@@ -1,7 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Commands;
using Core.Requests;
using MediatR;
diff --git a/Sample/ECommerce/Orders/Orders/ShoppingCarts/FinalizingCart/ShoppingCartFinalized.cs b/Sample/ECommerce/Orders/Orders/ShoppingCarts/FinalizingCart/ShoppingCartFinalized.cs
index eb31521b3..ed2bc407f 100644
--- a/Sample/ECommerce/Orders/Orders/ShoppingCarts/FinalizingCart/ShoppingCartFinalized.cs
+++ b/Sample/ECommerce/Orders/Orders/ShoppingCarts/FinalizingCart/ShoppingCartFinalized.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Collections.Generic;
using Core.Events;
using Orders.Products;
diff --git a/Sample/ECommerce/Payments/Payments.Api.Tests/Payments.Api.Tests.csproj b/Sample/ECommerce/Payments/Payments.Api.Tests/Payments.Api.Tests.csproj
index 30ae0643b..921b3b6c0 100644
--- a/Sample/ECommerce/Payments/Payments.Api.Tests/Payments.Api.Tests.csproj
+++ b/Sample/ECommerce/Payments/Payments.Api.Tests/Payments.Api.Tests.csproj
@@ -2,10 +2,6 @@
net6.0
- enable
- true
- trx%3bLogFileName=$(MSBuildProjectName).trx
- $(MSBuildThisFileDirectory)/bin/TestResults/$(TargetFramework)
diff --git a/Sample/ECommerce/Payments/Payments.Api.Tests/Payments/RequestingPayment/RequestPaymentsTests.cs b/Sample/ECommerce/Payments/Payments.Api.Tests/Payments/RequestingPayment/RequestPaymentsTests.cs
index 435c31989..aa72d1718 100644
--- a/Sample/ECommerce/Payments/Payments.Api.Tests/Payments/RequestingPayment/RequestPaymentsTests.cs
+++ b/Sample/ECommerce/Payments/Payments.Api.Tests/Payments/RequestingPayment/RequestPaymentsTests.cs
@@ -1,7 +1,4 @@
-using System;
using System.Net;
-using System.Net.Http;
-using System.Threading.Tasks;
using Core.Api.Testing;
using Core.Testing;
using FluentAssertions;
diff --git a/Sample/ECommerce/Payments/Payments.Api/Controllers/PaymentsController.cs b/Sample/ECommerce/Payments/Payments.Api/Controllers/PaymentsController.cs
index f971287d1..9880fa182 100644
--- a/Sample/ECommerce/Payments/Payments.Api/Controllers/PaymentsController.cs
+++ b/Sample/ECommerce/Payments/Payments.Api/Controllers/PaymentsController.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Core.Commands;
using Core.Ids;
diff --git a/Sample/ECommerce/Payments/Payments.Api/Payments.Api.csproj b/Sample/ECommerce/Payments/Payments.Api/Payments.Api.csproj
index 5f38da02f..ec03f3152 100644
--- a/Sample/ECommerce/Payments/Payments.Api/Payments.Api.csproj
+++ b/Sample/ECommerce/Payments/Payments.Api/Payments.Api.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
@@ -17,7 +15,7 @@
-
+
diff --git a/Sample/ECommerce/Payments/Payments.Api/Program.cs b/Sample/ECommerce/Payments/Payments.Api/Program.cs
index 7fd3b466c..9e1d771d0 100644
--- a/Sample/ECommerce/Payments/Payments.Api/Program.cs
+++ b/Sample/ECommerce/Payments/Payments.Api/Program.cs
@@ -1,7 +1,3 @@
-using Microsoft.AspNetCore.Hosting;
-using Microsoft.Extensions.Hosting;
-using Microsoft.Extensions.Logging;
-
namespace Payments.Api;
public class Program
diff --git a/Sample/ECommerce/Payments/Payments.Api/Requests/Carts/RequestPaymentRequest.cs b/Sample/ECommerce/Payments/Payments.Api/Requests/Carts/RequestPaymentRequest.cs
index 13f8deccf..1d9ef6e3f 100644
--- a/Sample/ECommerce/Payments/Payments.Api/Requests/Carts/RequestPaymentRequest.cs
+++ b/Sample/ECommerce/Payments/Payments.Api/Requests/Carts/RequestPaymentRequest.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace Payments.Api.Requests.Carts;
public class RequestPaymentRequest
diff --git a/Sample/ECommerce/Payments/Payments.Api/Requests/Carts/TimeOutPaymentRequest.cs b/Sample/ECommerce/Payments/Payments.Api/Requests/Carts/TimeOutPaymentRequest.cs
index ee286bc35..d319947f2 100644
--- a/Sample/ECommerce/Payments/Payments.Api/Requests/Carts/TimeOutPaymentRequest.cs
+++ b/Sample/ECommerce/Payments/Payments.Api/Requests/Carts/TimeOutPaymentRequest.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace Payments.Api.Requests.Carts;
public class TimeOutPaymentRequest
diff --git a/Sample/ECommerce/Payments/Payments.Api/Startup.cs b/Sample/ECommerce/Payments/Payments.Api/Startup.cs
index 904285452..744c7219e 100644
--- a/Sample/ECommerce/Payments/Payments.Api/Startup.cs
+++ b/Sample/ECommerce/Payments/Payments.Api/Startup.cs
@@ -3,17 +3,12 @@
using Core.Exceptions;
using Core.Marten.OptimisticConcurrency;
using Core.Serialization.Newtonsoft;
-using Core.Streaming.Kafka;
+using Core.Kafka;
using Core.WebApi.Middlewares.ExceptionHandling;
using Core.WebApi.OptimisticConcurrency;
using Core.WebApi.Swagger;
using Core.WebApi.Tracing.Correlation;
using Marten.Exceptions;
-using Microsoft.AspNetCore.Builder;
-using Microsoft.AspNetCore.Hosting;
-using Microsoft.Extensions.Configuration;
-using Microsoft.Extensions.DependencyInjection;
-using Microsoft.Extensions.Hosting;
using Microsoft.OpenApi.Models;
namespace Payments.Api;
diff --git a/Sample/ECommerce/Payments/Payments.Tests/Payments.Tests.csproj b/Sample/ECommerce/Payments/Payments.Tests/Payments.Tests.csproj
index 320eec444..b25f2e07f 100644
--- a/Sample/ECommerce/Payments/Payments.Tests/Payments.Tests.csproj
+++ b/Sample/ECommerce/Payments/Payments.Tests/Payments.Tests.csproj
@@ -2,10 +2,6 @@
net6.0
- enable
- true
- trx%3bLogFileName=$(MSBuildProjectName).trx
- $(MSBuildThisFileDirectory)/bin/TestResults/$(TargetFramework)
diff --git a/Sample/ECommerce/Payments/Payments/Payments.csproj b/Sample/ECommerce/Payments/Payments/Payments.csproj
index a715a88f4..ec8e9d396 100644
--- a/Sample/ECommerce/Payments/Payments/Payments.csproj
+++ b/Sample/ECommerce/Payments/Payments/Payments.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Sample/ECommerce/Payments/Payments/Payments/CompletingPayment/CompletePayment.cs b/Sample/ECommerce/Payments/Payments/Payments/CompletingPayment/CompletePayment.cs
index 1f0499b11..05448d0c7 100644
--- a/Sample/ECommerce/Payments/Payments/Payments/CompletingPayment/CompletePayment.cs
+++ b/Sample/ECommerce/Payments/Payments/Payments/CompletingPayment/CompletePayment.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Commands;
using Core.Marten.OptimisticConcurrency;
using Core.Marten.Repository;
diff --git a/Sample/ECommerce/Payments/Payments/Payments/CompletingPayment/PaymentCompleted.cs b/Sample/ECommerce/Payments/Payments/Payments/CompletingPayment/PaymentCompleted.cs
index ff0abee40..5c9fe056e 100644
--- a/Sample/ECommerce/Payments/Payments/Payments/CompletingPayment/PaymentCompleted.cs
+++ b/Sample/ECommerce/Payments/Payments/Payments/CompletingPayment/PaymentCompleted.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Events;
namespace Payments.Payments.CompletingPayment;
diff --git a/Sample/ECommerce/Payments/Payments/Payments/DiscardingPayment/DiscardPayment.cs b/Sample/ECommerce/Payments/Payments/Payments/DiscardingPayment/DiscardPayment.cs
index 7c67d2657..82011571e 100644
--- a/Sample/ECommerce/Payments/Payments/Payments/DiscardingPayment/DiscardPayment.cs
+++ b/Sample/ECommerce/Payments/Payments/Payments/DiscardingPayment/DiscardPayment.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Commands;
using Core.Marten.OptimisticConcurrency;
using Core.Marten.Repository;
diff --git a/Sample/ECommerce/Payments/Payments/Payments/DiscardingPayment/PaymentDiscarded.cs b/Sample/ECommerce/Payments/Payments/Payments/DiscardingPayment/PaymentDiscarded.cs
index f6c12a917..ad44ebd49 100644
--- a/Sample/ECommerce/Payments/Payments/Payments/DiscardingPayment/PaymentDiscarded.cs
+++ b/Sample/ECommerce/Payments/Payments/Payments/DiscardingPayment/PaymentDiscarded.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Events;
namespace Payments.Payments.DiscardingPayment;
diff --git a/Sample/ECommerce/Payments/Payments/Payments/FailingPayment/PaymentFailed.cs b/Sample/ECommerce/Payments/Payments/Payments/FailingPayment/PaymentFailed.cs
index 3cdff49c6..6e6fcaa55 100644
--- a/Sample/ECommerce/Payments/Payments/Payments/FailingPayment/PaymentFailed.cs
+++ b/Sample/ECommerce/Payments/Payments/Payments/FailingPayment/PaymentFailed.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Events;
using Marten;
using Payments.Payments.DiscardingPayment;
diff --git a/Sample/ECommerce/Payments/Payments/Payments/FinalizingPayment/PaymentFinalized.cs b/Sample/ECommerce/Payments/Payments/Payments/FinalizingPayment/PaymentFinalized.cs
index 7be6bf131..eeba3982c 100644
--- a/Sample/ECommerce/Payments/Payments/Payments/FinalizingPayment/PaymentFinalized.cs
+++ b/Sample/ECommerce/Payments/Payments/Payments/FinalizingPayment/PaymentFinalized.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Events;
using Marten;
using Payments.Payments.CompletingPayment;
diff --git a/Sample/ECommerce/Payments/Payments/Payments/Payment.cs b/Sample/ECommerce/Payments/Payments/Payments/Payment.cs
index beb37b6e7..34055552f 100644
--- a/Sample/ECommerce/Payments/Payments/Payments/Payment.cs
+++ b/Sample/ECommerce/Payments/Payments/Payments/Payment.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Aggregates;
using Payments.Payments.CompletingPayment;
using Payments.Payments.DiscardingPayment;
diff --git a/Sample/ECommerce/Payments/Payments/Payments/RequestingPayment/PaymentRequested.cs b/Sample/ECommerce/Payments/Payments/Payments/RequestingPayment/PaymentRequested.cs
index aff7f4bdc..29e8567d6 100644
--- a/Sample/ECommerce/Payments/Payments/Payments/RequestingPayment/PaymentRequested.cs
+++ b/Sample/ECommerce/Payments/Payments/Payments/RequestingPayment/PaymentRequested.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Events;
namespace Payments.Payments.RequestingPayment;
diff --git a/Sample/ECommerce/Payments/Payments/Payments/RequestingPayment/RequestPayment.cs b/Sample/ECommerce/Payments/Payments/Payments/RequestingPayment/RequestPayment.cs
index 3799c3162..cb4300d04 100644
--- a/Sample/ECommerce/Payments/Payments/Payments/RequestingPayment/RequestPayment.cs
+++ b/Sample/ECommerce/Payments/Payments/Payments/RequestingPayment/RequestPayment.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Commands;
using Core.Marten.OptimisticConcurrency;
using Core.Marten.Repository;
diff --git a/Sample/ECommerce/Payments/Payments/Payments/TimingOutPayment/PaymentTimedOut.cs b/Sample/ECommerce/Payments/Payments/Payments/TimingOutPayment/PaymentTimedOut.cs
index 6fe96687b..087ab0a6e 100644
--- a/Sample/ECommerce/Payments/Payments/Payments/TimingOutPayment/PaymentTimedOut.cs
+++ b/Sample/ECommerce/Payments/Payments/Payments/TimingOutPayment/PaymentTimedOut.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Events;
namespace Payments.Payments.TimingOutPayment;
diff --git a/Sample/ECommerce/Payments/Payments/Payments/TimingOutPayment/TimeOutPayment.cs b/Sample/ECommerce/Payments/Payments/Payments/TimingOutPayment/TimeOutPayment.cs
index 97af26591..739897c23 100644
--- a/Sample/ECommerce/Payments/Payments/Payments/TimingOutPayment/TimeOutPayment.cs
+++ b/Sample/ECommerce/Payments/Payments/Payments/TimingOutPayment/TimeOutPayment.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Commands;
using Core.Marten.OptimisticConcurrency;
using Core.Marten.Repository;
diff --git a/Sample/ECommerce/Shipments/Shipments.Api.Tests/Packages/SendPackageTests.cs b/Sample/ECommerce/Shipments/Shipments.Api.Tests/Packages/SendPackageTests.cs
index 5dff6fea0..05581079e 100644
--- a/Sample/ECommerce/Shipments/Shipments.Api.Tests/Packages/SendPackageTests.cs
+++ b/Sample/ECommerce/Shipments/Shipments.Api.Tests/Packages/SendPackageTests.cs
@@ -1,9 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
using System.Net;
-using System.Net.Http;
-using System.Threading.Tasks;
using Core.Api.Testing;
using Core.Testing;
using FluentAssertions;
diff --git a/Sample/ECommerce/Shipments/Shipments.Api.Tests/Shipments.Api.Tests.csproj b/Sample/ECommerce/Shipments/Shipments.Api.Tests/Shipments.Api.Tests.csproj
index a297cdc09..10183bf53 100644
--- a/Sample/ECommerce/Shipments/Shipments.Api.Tests/Shipments.Api.Tests.csproj
+++ b/Sample/ECommerce/Shipments/Shipments.Api.Tests/Shipments.Api.Tests.csproj
@@ -2,10 +2,6 @@
net6.0
- enable
- true
- trx%3bLogFileName=$(MSBuildProjectName).trx
- $(MSBuildThisFileDirectory)/bin/TestResults/$(TargetFramework)
diff --git a/Sample/ECommerce/Shipments/Shipments.Api/Controllers/ShipmentsController.cs b/Sample/ECommerce/Shipments/Shipments.Api/Controllers/ShipmentsController.cs
index f86841fa0..23d88185d 100644
--- a/Sample/ECommerce/Shipments/Shipments.Api/Controllers/ShipmentsController.cs
+++ b/Sample/ECommerce/Shipments/Shipments.Api/Controllers/ShipmentsController.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Shipments.Packages;
using Shipments.Packages.Requests;
diff --git a/Sample/ECommerce/Shipments/Shipments.Api/Program.cs b/Sample/ECommerce/Shipments/Shipments.Api/Program.cs
index 8dd9e3298..a078d698e 100644
--- a/Sample/ECommerce/Shipments/Shipments.Api/Program.cs
+++ b/Sample/ECommerce/Shipments/Shipments.Api/Program.cs
@@ -1,7 +1,3 @@
-using Microsoft.AspNetCore.Hosting;
-using Microsoft.Extensions.Hosting;
-using Microsoft.Extensions.Logging;
-
namespace Shipments.Api;
public class Program
diff --git a/Sample/ECommerce/Shipments/Shipments.Api/Shipments.Api.csproj b/Sample/ECommerce/Shipments/Shipments.Api/Shipments.Api.csproj
index cbfba3a99..6e39ef149 100644
--- a/Sample/ECommerce/Shipments/Shipments.Api/Shipments.Api.csproj
+++ b/Sample/ECommerce/Shipments/Shipments.Api/Shipments.Api.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
@@ -17,7 +15,7 @@
-
+
diff --git a/Sample/ECommerce/Shipments/Shipments.Api/Startup.cs b/Sample/ECommerce/Shipments/Shipments.Api/Startup.cs
index be6780a6d..f6adcc20f 100644
--- a/Sample/ECommerce/Shipments/Shipments.Api/Startup.cs
+++ b/Sample/ECommerce/Shipments/Shipments.Api/Startup.cs
@@ -2,15 +2,10 @@
using Core;
using Core.Exceptions;
using Core.Serialization.Newtonsoft;
-using Core.Streaming.Kafka;
+using Core.Kafka;
using Core.WebApi.Middlewares.ExceptionHandling;
using Core.WebApi.Swagger;
using Core.WebApi.Tracing.Correlation;
-using Microsoft.AspNetCore.Builder;
-using Microsoft.AspNetCore.Hosting;
-using Microsoft.Extensions.Configuration;
-using Microsoft.Extensions.DependencyInjection;
-using Microsoft.Extensions.Hosting;
using Microsoft.OpenApi.Models;
namespace Shipments.Api;
diff --git a/Sample/ECommerce/Shipments/Shipments.Tests/Shipments.Tests.csproj b/Sample/ECommerce/Shipments/Shipments.Tests/Shipments.Tests.csproj
index cb6a93f7c..27abcbc33 100644
--- a/Sample/ECommerce/Shipments/Shipments.Tests/Shipments.Tests.csproj
+++ b/Sample/ECommerce/Shipments/Shipments.Tests/Shipments.Tests.csproj
@@ -2,10 +2,6 @@
net6.0
- enable
- true
- trx%3bLogFileName=$(MSBuildProjectName).trx
- $(MSBuildThisFileDirectory)/bin/TestResults/$(TargetFramework)
diff --git a/Sample/ECommerce/Shipments/Shipments/Config.cs b/Sample/ECommerce/Shipments/Shipments/Config.cs
index 0e4061985..cefd0d7af 100644
--- a/Sample/ECommerce/Shipments/Shipments/Config.cs
+++ b/Sample/ECommerce/Shipments/Shipments/Config.cs
@@ -1,4 +1,3 @@
-using System;
using Microsoft.AspNetCore.Builder;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
diff --git a/Sample/ECommerce/Shipments/Shipments/Packages/Events/External/PackageWasSent.cs b/Sample/ECommerce/Shipments/Shipments/Packages/Events/External/PackageWasSent.cs
index 4fe8c739d..c03368f88 100644
--- a/Sample/ECommerce/Shipments/Shipments/Packages/Events/External/PackageWasSent.cs
+++ b/Sample/ECommerce/Shipments/Shipments/Packages/Events/External/PackageWasSent.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Collections.Generic;
using Core.Events;
using Shipments.Products;
diff --git a/Sample/ECommerce/Shipments/Shipments/Packages/Events/External/ProductWasOutOfStock.cs b/Sample/ECommerce/Shipments/Shipments/Packages/Events/External/ProductWasOutOfStock.cs
index 064e9a046..7e8891825 100644
--- a/Sample/ECommerce/Shipments/Shipments/Packages/Events/External/ProductWasOutOfStock.cs
+++ b/Sample/ECommerce/Shipments/Shipments/Packages/Events/External/ProductWasOutOfStock.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Events;
namespace Shipments.Packages.Events.External;
diff --git a/Sample/ECommerce/Shipments/Shipments/Packages/Package.cs b/Sample/ECommerce/Shipments/Shipments/Packages/Package.cs
index 61dd5abc9..00b6fe5ff 100644
--- a/Sample/ECommerce/Shipments/Shipments/Packages/Package.cs
+++ b/Sample/ECommerce/Shipments/Shipments/Packages/Package.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Collections.Generic;
using Shipments.Products;
namespace Shipments.Packages;
diff --git a/Sample/ECommerce/Shipments/Shipments/Packages/PackageService.cs b/Sample/ECommerce/Shipments/Shipments/Packages/PackageService.cs
index 03eb0520c..97ba858ca 100644
--- a/Sample/ECommerce/Shipments/Shipments/Packages/PackageService.cs
+++ b/Sample/ECommerce/Shipments/Shipments/Packages/PackageService.cs
@@ -1,7 +1,3 @@
-using System;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Events;
using Microsoft.EntityFrameworkCore;
using Shipments.Packages.Events.External;
diff --git a/Sample/ECommerce/Shipments/Shipments/Packages/Requests/DeliverPackage.cs b/Sample/ECommerce/Shipments/Shipments/Packages/Requests/DeliverPackage.cs
index 616a6fe45..e6fb45b53 100644
--- a/Sample/ECommerce/Shipments/Shipments/Packages/Requests/DeliverPackage.cs
+++ b/Sample/ECommerce/Shipments/Shipments/Packages/Requests/DeliverPackage.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace Shipments.Packages.Requests;
public record DeliverPackage(
diff --git a/Sample/ECommerce/Shipments/Shipments/Packages/Requests/SendPackage.cs b/Sample/ECommerce/Shipments/Shipments/Packages/Requests/SendPackage.cs
index 7678003fa..787638c50 100644
--- a/Sample/ECommerce/Shipments/Shipments/Packages/Requests/SendPackage.cs
+++ b/Sample/ECommerce/Shipments/Shipments/Packages/Requests/SendPackage.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Collections.Generic;
using Shipments.Products;
namespace Shipments.Packages.Requests;
diff --git a/Sample/ECommerce/Shipments/Shipments/Products/ProductAvailabilityService.cs b/Sample/ECommerce/Shipments/Shipments/Products/ProductAvailabilityService.cs
index 6743a363a..3cdf79b49 100644
--- a/Sample/ECommerce/Shipments/Shipments/Products/ProductAvailabilityService.cs
+++ b/Sample/ECommerce/Shipments/Shipments/Products/ProductAvailabilityService.cs
@@ -1,5 +1,3 @@
-using System.Linq;
-
namespace Shipments.Products;
public interface IProductAvailabilityService
diff --git a/Sample/ECommerce/Shipments/Shipments/Products/ProductItem.cs b/Sample/ECommerce/Shipments/Shipments/Products/ProductItem.cs
index 18fef26ea..76afc36ec 100644
--- a/Sample/ECommerce/Shipments/Shipments/Products/ProductItem.cs
+++ b/Sample/ECommerce/Shipments/Shipments/Products/ProductItem.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace Shipments.Products;
public class ProductItem
diff --git a/Sample/ECommerce/Shipments/Shipments/Shipments.csproj b/Sample/ECommerce/Shipments/Shipments/Shipments.csproj
index c9ed73e5e..c05e61313 100644
--- a/Sample/ECommerce/Shipments/Shipments/Shipments.csproj
+++ b/Sample/ECommerce/Shipments/Shipments/Shipments.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Sample/ECommerce/Shipments/Shipments/Storage/ShipmentsDbContextFactory.cs b/Sample/ECommerce/Shipments/Shipments/Storage/ShipmentsDbContextFactory.cs
index cf459f8a3..fddb8267f 100644
--- a/Sample/ECommerce/Shipments/Shipments/Storage/ShipmentsDbContextFactory.cs
+++ b/Sample/ECommerce/Shipments/Shipments/Storage/ShipmentsDbContextFactory.cs
@@ -1,4 +1,3 @@
-using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design;
using Microsoft.Extensions.Configuration;
diff --git a/Sample/EventPipelines/EventPipelines.MediatR/EventPipelines.MediatR.csproj b/Sample/EventPipelines/EventPipelines.MediatR/EventPipelines.MediatR.csproj
index 88f73d562..9ceb93ba1 100644
--- a/Sample/EventPipelines/EventPipelines.MediatR/EventPipelines.MediatR.csproj
+++ b/Sample/EventPipelines/EventPipelines.MediatR/EventPipelines.MediatR.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Sample/EventPipelines/EventPipelines.MediatR/MediatorEventRouter.cs b/Sample/EventPipelines/EventPipelines.MediatR/MediatorEventRouter.cs
index ca953d244..4c71e0c04 100644
--- a/Sample/EventPipelines/EventPipelines.MediatR/MediatorEventRouter.cs
+++ b/Sample/EventPipelines/EventPipelines.MediatR/MediatorEventRouter.cs
@@ -1,6 +1,4 @@
-using System.Threading;
-using System.Threading.Tasks;
-using MediatR;
+using MediatR;
namespace EventPipelines.MediatR;
diff --git a/Sample/EventPipelines/EventPipelines.Tests/ClassesWithBuilderTest.cs b/Sample/EventPipelines/EventPipelines.Tests/ClassesWithBuilderTest.cs
index d6757e5fc..ba6f803ad 100644
--- a/Sample/EventPipelines/EventPipelines.Tests/ClassesWithBuilderTest.cs
+++ b/Sample/EventPipelines/EventPipelines.Tests/ClassesWithBuilderTest.cs
@@ -1,8 +1,4 @@
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
-using FluentAssertions;
+using FluentAssertions;
using Xunit;
namespace EventPipelines.Tests;
diff --git a/Sample/EventPipelines/EventPipelines.Tests/ClassesWithIoCTest.cs b/Sample/EventPipelines/EventPipelines.Tests/ClassesWithIoCTest.cs
index d74fb3a2e..e27be4578 100644
--- a/Sample/EventPipelines/EventPipelines.Tests/ClassesWithIoCTest.cs
+++ b/Sample/EventPipelines/EventPipelines.Tests/ClassesWithIoCTest.cs
@@ -1,9 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
-using FluentAssertions;
+using FluentAssertions;
using Microsoft.Extensions.DependencyInjection;
using Xunit;
diff --git a/Sample/EventPipelines/EventPipelines.Tests/ClassesWithMediatRTest.cs b/Sample/EventPipelines/EventPipelines.Tests/ClassesWithMediatRTest.cs
index 453722042..e7c257168 100644
--- a/Sample/EventPipelines/EventPipelines.Tests/ClassesWithMediatRTest.cs
+++ b/Sample/EventPipelines/EventPipelines.Tests/ClassesWithMediatRTest.cs
@@ -1,9 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
-using EventPipelines.MediatR;
+using EventPipelines.MediatR;
using FluentAssertions;
using MediatR;
using Microsoft.Extensions.DependencyInjection;
diff --git a/Sample/EventPipelines/EventPipelines.Tests/EventPipelines.Tests.csproj b/Sample/EventPipelines/EventPipelines.Tests/EventPipelines.Tests.csproj
index a99ed37b9..afd05dc14 100644
--- a/Sample/EventPipelines/EventPipelines.Tests/EventPipelines.Tests.csproj
+++ b/Sample/EventPipelines/EventPipelines.Tests/EventPipelines.Tests.csproj
@@ -2,10 +2,6 @@
net6.0
- enable
- true
- trx%3bLogFileName=$(MSBuildProjectName).trx
- $(MSBuildThisFileDirectory)/bin/TestResults/$(TargetFramework)
diff --git a/Sample/EventPipelines/EventPipelines.Tests/PureFunctionsWithBuilderTest.cs b/Sample/EventPipelines/EventPipelines.Tests/PureFunctionsWithBuilderTest.cs
index 66f4de83f..51a3257db 100644
--- a/Sample/EventPipelines/EventPipelines.Tests/PureFunctionsWithBuilderTest.cs
+++ b/Sample/EventPipelines/EventPipelines.Tests/PureFunctionsWithBuilderTest.cs
@@ -1,8 +1,4 @@
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
-using FluentAssertions;
+using FluentAssertions;
using Xunit;
namespace EventPipelines.Tests;
diff --git a/Sample/EventPipelines/EventPipelines.Tests/PureFunctionsWithIoCTest.cs b/Sample/EventPipelines/EventPipelines.Tests/PureFunctionsWithIoCTest.cs
index 273fdfda3..0cdf85636 100644
--- a/Sample/EventPipelines/EventPipelines.Tests/PureFunctionsWithIoCTest.cs
+++ b/Sample/EventPipelines/EventPipelines.Tests/PureFunctionsWithIoCTest.cs
@@ -1,9 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
-using FluentAssertions;
+using FluentAssertions;
using Microsoft.Extensions.DependencyInjection;
using Xunit;
diff --git a/Sample/EventPipelines/EventPipelines.Tests/PureFunctionsWithMediatRTest.cs b/Sample/EventPipelines/EventPipelines.Tests/PureFunctionsWithMediatRTest.cs
index 87d3bdaa4..0526b6d13 100644
--- a/Sample/EventPipelines/EventPipelines.Tests/PureFunctionsWithMediatRTest.cs
+++ b/Sample/EventPipelines/EventPipelines.Tests/PureFunctionsWithMediatRTest.cs
@@ -1,9 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
-using EventPipelines.MediatR;
+using EventPipelines.MediatR;
using FluentAssertions;
using MediatR;
using Microsoft.Extensions.DependencyInjection;
diff --git a/Sample/EventPipelines/EventPipelines/Builder.cs b/Sample/EventPipelines/EventPipelines/Builder.cs
index 7876c3cb1..d606309a2 100644
--- a/Sample/EventPipelines/EventPipelines/Builder.cs
+++ b/Sample/EventPipelines/EventPipelines/Builder.cs
@@ -1,9 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Threading;
-using System.Threading.Tasks;
-
-namespace EventPipelines;
+namespace EventPipelines;
public class EventHandlersBuilder
{
diff --git a/Sample/EventPipelines/EventPipelines/Configuration.cs b/Sample/EventPipelines/EventPipelines/Configuration.cs
index b0ab74362..23df94a95 100644
--- a/Sample/EventPipelines/EventPipelines/Configuration.cs
+++ b/Sample/EventPipelines/EventPipelines/Configuration.cs
@@ -1,7 +1,4 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
-using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.DependencyInjection;
namespace EventPipelines;
diff --git a/Sample/EventPipelines/EventPipelines/EventBus.cs b/Sample/EventPipelines/EventPipelines/EventBus.cs
index 1f52fd302..e753e5731 100644
--- a/Sample/EventPipelines/EventPipelines/EventBus.cs
+++ b/Sample/EventPipelines/EventPipelines/EventBus.cs
@@ -1,9 +1,4 @@
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
+using System.Collections;
namespace EventPipelines;
diff --git a/Sample/EventPipelines/EventPipelines/EventPipelines.csproj b/Sample/EventPipelines/EventPipelines/EventPipelines.csproj
index 93917fccc..ac244558a 100644
--- a/Sample/EventPipelines/EventPipelines/EventPipelines.csproj
+++ b/Sample/EventPipelines/EventPipelines/EventPipelines.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts.Api.Tests/Carts.Api.Tests.csproj b/Sample/EventStoreDB/ECommerce/Carts/Carts.Api.Tests/Carts.Api.Tests.csproj
index cce9bd176..22866945f 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts.Api.Tests/Carts.Api.Tests.csproj
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts.Api.Tests/Carts.Api.Tests.csproj
@@ -2,10 +2,6 @@
net6.0
- enable
- true
- trx%3bLogFileName=$(MSBuildProjectName).trx
- $(MSBuildThisFileDirectory)/bin/TestResults/$(TargetFramework)
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/AddingProduct/AddProductTests.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/AddingProduct/AddProductTests.cs
index c48196ab0..0a94fc21c 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/AddingProduct/AddProductTests.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/AddingProduct/AddProductTests.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Linq;
using System.Net;
-using System.Net.Http;
-using System.Threading.Tasks;
using Carts.Api.Requests;
using Carts.ShoppingCarts;
using Carts.ShoppingCarts.GettingCartById;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/Confirming/ConfirmShoppingCartTests.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/Confirming/ConfirmShoppingCartTests.cs
index a6a94ebd9..7c75ef217 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/Confirming/ConfirmShoppingCartTests.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/Confirming/ConfirmShoppingCartTests.cs
@@ -1,7 +1,4 @@
-using System;
using System.Net;
-using System.Net.Http;
-using System.Threading.Tasks;
using Carts.Api.Requests;
using Carts.ShoppingCarts;
using Carts.ShoppingCarts.GettingCartById;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/Initializing/InitializeShoppingCartTests.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/Initializing/InitializeShoppingCartTests.cs
index 8515b8d46..c2e438d55 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/Initializing/InitializeShoppingCartTests.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/Initializing/InitializeShoppingCartTests.cs
@@ -1,7 +1,4 @@
-using System;
using System.Net;
-using System.Net.Http;
-using System.Threading.Tasks;
using Carts.Api.Requests;
using Carts.ShoppingCarts;
using Carts.ShoppingCarts.GettingCartById;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/RemovingProduct/RemoveProductTests.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/RemovingProduct/RemoveProductTests.cs
index aadcdda5f..c57e7998f 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/RemovingProduct/RemoveProductTests.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts.Api.Tests/ShoppingCarts/RemovingProduct/RemoveProductTests.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Linq;
using System.Net;
-using System.Net.Http;
-using System.Threading.Tasks;
using Carts.Api.Requests;
using Carts.ShoppingCarts;
using Carts.ShoppingCarts.GettingCartById;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts.Api/Carts.Api.csproj b/Sample/EventStoreDB/ECommerce/Carts/Carts.Api/Carts.Api.csproj
index 0809610b4..128b692aa 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts.Api/Carts.Api.csproj
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts.Api/Carts.Api.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts.Api/Controllers/ShoppingCartsController.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts.Api/Controllers/ShoppingCartsController.cs
index 63da8c50c..94b1d3a7b 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts.Api/Controllers/ShoppingCartsController.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts.Api/Controllers/ShoppingCartsController.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Threading.Tasks;
using Carts.Api.Requests;
using Carts.ShoppingCarts.ConfirmingCart;
using Carts.ShoppingCarts.GettingCartAtVersion;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts.Api/Program.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts.Api/Program.cs
index df2bc6d3e..92ea24395 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts.Api/Program.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts.Api/Program.cs
@@ -1,7 +1,3 @@
-using Microsoft.AspNetCore.Hosting;
-using Microsoft.Extensions.Hosting;
-using Microsoft.Extensions.Logging;
-
namespace Carts.Api;
public class Program
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts.Api/Requests/ShoppingCartsRequests.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts.Api/Requests/ShoppingCartsRequests.cs
index adfd4b572..652037703 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts.Api/Requests/ShoppingCartsRequests.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts.Api/Requests/ShoppingCartsRequests.cs
@@ -1,6 +1,4 @@
-using System;
-
-namespace Carts.Api.Requests;
+namespace Carts.Api.Requests;
public record InitializeShoppingCartRequest(
Guid? ClientId
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts.Api/Startup.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts.Api/Startup.cs
index f5c8a396b..990b3e7e4 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts.Api/Startup.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts.Api/Startup.cs
@@ -1,5 +1,4 @@
using System.Net;
-using System.Runtime.CompilerServices;
using Core;
using Core.EventStoreDB;
using Core.EventStoreDB.OptimisticConcurrency;
@@ -10,15 +9,8 @@
using Core.WebApi.Swagger;
using Core.WebApi.Tracing.Correlation;
using EventStore.Client;
-using Microsoft.AspNetCore.Builder;
-using Microsoft.AspNetCore.Hosting;
-using Microsoft.Extensions.Configuration;
-using Microsoft.Extensions.DependencyInjection;
-using Microsoft.Extensions.Hosting;
using Microsoft.OpenApi.Models;
-[assembly: InternalsVisibleTo("Marten.Generated")]
-
namespace Carts.Api;
public class Startup
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Builders/CartBuilder.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Builders/CartBuilder.cs
index e0c2945d4..c7ef94a34 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Builders/CartBuilder.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Builders/CartBuilder.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Collections.Generic;
using Carts.ShoppingCarts;
using Carts.ShoppingCarts.InitializingCart;
using Core.Events;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Carts.Tests.csproj b/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Carts.Tests.csproj
index 1ed1bc314..84f3e986d 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Carts.Tests.csproj
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Carts.Tests.csproj
@@ -2,10 +2,6 @@
net6.0
- enable
- true
- trx%3bLogFileName=$(MSBuildProjectName).trx
- $(MSBuildThisFileDirectory)/bin/TestResults/$(TargetFramework)
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Carts/InitializingCart/InitializeCartCommandHandlerTests.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Carts/InitializingCart/InitializeCartCommandHandlerTests.cs
index 730defb19..95d47cf10 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Carts/InitializingCart/InitializeCartCommandHandlerTests.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Carts/InitializingCart/InitializeCartCommandHandlerTests.cs
@@ -1,7 +1,3 @@
-using System;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
using Carts.ShoppingCarts;
using Carts.ShoppingCarts.InitializingCart;
using Carts.Tests.Extensions.Reservations;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Carts/InitializingCart/InitializeCartTests.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Carts/InitializingCart/InitializeCartTests.cs
index adc630ffa..321a7b9fa 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Carts/InitializingCart/InitializeCartTests.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Carts/InitializingCart/InitializeCartTests.cs
@@ -1,4 +1,3 @@
-using System;
using Carts.ShoppingCarts;
using Carts.Tests.Extensions.Reservations;
using Xunit;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Extensions/Reservations/CartExtensions.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Extensions/Reservations/CartExtensions.cs
index 589078040..70d29808a 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Extensions/Reservations/CartExtensions.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Extensions/Reservations/CartExtensions.cs
@@ -1,4 +1,3 @@
-using System;
using Carts.ShoppingCarts;
using Carts.ShoppingCarts.InitializingCart;
using Core.Testing;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Stubs/Ids/FakeIdGenerator.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Stubs/Ids/FakeIdGenerator.cs
index f1d9e6911..e1000574c 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Stubs/Ids/FakeIdGenerator.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Stubs/Ids/FakeIdGenerator.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Ids;
namespace Carts.Tests.Stubs.Ids;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Stubs/Products/FakeProductPriceCalculator.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Stubs/Products/FakeProductPriceCalculator.cs
index f028c63ff..e5591e6e2 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Stubs/Products/FakeProductPriceCalculator.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Stubs/Products/FakeProductPriceCalculator.cs
@@ -1,5 +1,3 @@
-using System.Collections.Generic;
-using System.Linq;
using Carts.Pricing;
using Carts.ShoppingCarts.Products;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Stubs/Repositories/FakeRepository.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Stubs/Repositories/FakeRepository.cs
index ba168c0aa..1de2c51c3 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Stubs/Repositories/FakeRepository.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts.Tests/Stubs/Repositories/FakeRepository.cs
@@ -1,8 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Aggregates;
using Core.EventStoreDB.Repository;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts/Carts.csproj b/Sample/EventStoreDB/ECommerce/Carts/Carts/Carts.csproj
index 1c76e0205..72eaeda92 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts/Carts.csproj
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts/Carts.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts/Pricing/IProductPriceCalculator.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts/Pricing/IProductPriceCalculator.cs
index 0242c0da6..6429af0fd 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts/Pricing/IProductPriceCalculator.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts/Pricing/IProductPriceCalculator.cs
@@ -1,4 +1,3 @@
-using System.Collections.Generic;
using Carts.ShoppingCarts.Products;
namespace Carts.Pricing;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts/Pricing/RandomProductPriceCalculator.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts/Pricing/RandomProductPriceCalculator.cs
index 28d19353d..693cbd33a 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts/Pricing/RandomProductPriceCalculator.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts/Pricing/RandomProductPriceCalculator.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
using Carts.ShoppingCarts.Products;
namespace Carts.Pricing;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/AddingProduct/AddProduct.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/AddingProduct/AddProduct.cs
index 2f020abab..8ad0b07e3 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/AddingProduct/AddProduct.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/AddingProduct/AddProduct.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Carts.Pricing;
using Carts.ShoppingCarts.Products;
using Core.Commands;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/AddingProduct/ProductAdded.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/AddingProduct/ProductAdded.cs
index 5967ce666..e5daeddfd 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/AddingProduct/ProductAdded.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/AddingProduct/ProductAdded.cs
@@ -1,4 +1,3 @@
-using System;
using Carts.ShoppingCarts.Products;
using Core.Events;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/Config.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/Config.cs
index 60cd592bd..7ec98b068 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/Config.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/Config.cs
@@ -1,5 +1,3 @@
-using System.Threading;
-using System.Threading.Tasks;
using Carts.Pricing;
using Carts.ShoppingCarts.AddingProduct;
using Carts.ShoppingCarts.ConfirmingCart;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/ConfirmingCart/ConfirmShoppingCart.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/ConfirmingCart/ConfirmShoppingCart.cs
index b182550b2..0e2a023fa 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/ConfirmingCart/ConfirmShoppingCart.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/ConfirmingCart/ConfirmShoppingCart.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Commands;
using Core.EventStoreDB.OptimisticConcurrency;
using Core.EventStoreDB.Repository;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/ConfirmingCart/ShoppingCartConfirmed.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/ConfirmingCart/ShoppingCartConfirmed.cs
index f6c52264a..be6b7a227 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/ConfirmingCart/ShoppingCartConfirmed.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/ConfirmingCart/ShoppingCartConfirmed.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Events;
namespace Carts.ShoppingCarts.ConfirmingCart;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/FinalizingCart/ShoppingCartFinalized.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/FinalizingCart/ShoppingCartFinalized.cs
index 12e7caf7a..6bc371b48 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/FinalizingCart/ShoppingCartFinalized.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/FinalizingCart/ShoppingCartFinalized.cs
@@ -1,8 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
using Carts.ShoppingCarts.ConfirmingCart;
using Carts.ShoppingCarts.Products;
using Core.Events;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/GettingCartAtVersion/GetCartAtVersion.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/GettingCartAtVersion/GetCartAtVersion.cs
index ebbe163ae..aa18e3f94 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/GettingCartAtVersion/GetCartAtVersion.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/GettingCartAtVersion/GetCartAtVersion.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Carts.ShoppingCarts.GettingCartById;
using Core.EventStoreDB.Events;
using Core.Exceptions;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/GettingCartById/GetCartById.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/GettingCartById/GetCartById.cs
index 11eaf1dc9..129445ba4 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/GettingCartById/GetCartById.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/GettingCartById/GetCartById.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Exceptions;
using Core.Queries;
using Marten;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/GettingCartById/ShoppingCartDetails.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/GettingCartById/ShoppingCartDetails.cs
index ba73e1ae8..2d22ae3a8 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/GettingCartById/ShoppingCartDetails.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/GettingCartById/ShoppingCartDetails.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
using Carts.ShoppingCarts.AddingProduct;
using Carts.ShoppingCarts.ConfirmingCart;
using Carts.ShoppingCarts.InitializingCart;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/GettingCartHistory/CartHistory.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/GettingCartHistory/CartHistory.cs
index df20bf50d..5f5a8aa5a 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/GettingCartHistory/CartHistory.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/GettingCartHistory/CartHistory.cs
@@ -1,4 +1,3 @@
-using System;
using Carts.ShoppingCarts.AddingProduct;
using Carts.ShoppingCarts.ConfirmingCart;
using Carts.ShoppingCarts.InitializingCart;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/GettingCartHistory/GetCartHistory.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/GettingCartHistory/GetCartHistory.cs
index 4853cb48d..90978a921 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/GettingCartHistory/GetCartHistory.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/GettingCartHistory/GetCartHistory.cs
@@ -1,7 +1,3 @@
-using System;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Queries;
using Marten;
using Marten.Pagination;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/GettingCarts/GetCarts.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/GettingCarts/GetCarts.cs
index 95b021c39..54210e8d4 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/GettingCarts/GetCarts.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/GettingCarts/GetCarts.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Queries;
using Marten;
using Marten.Pagination;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/GettingCarts/ShoppingCartShortInfo.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/GettingCarts/ShoppingCartShortInfo.cs
index 754a6b778..144e03218 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/GettingCarts/ShoppingCartShortInfo.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/GettingCarts/ShoppingCartShortInfo.cs
@@ -1,4 +1,3 @@
-using System;
using Carts.ShoppingCarts.AddingProduct;
using Carts.ShoppingCarts.ConfirmingCart;
using Carts.ShoppingCarts.InitializingCart;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/InitializingCart/InitializeShoppingCart.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/InitializingCart/InitializeShoppingCart.cs
index 9168bc046..a65e35e37 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/InitializingCart/InitializeShoppingCart.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/InitializingCart/InitializeShoppingCart.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Commands;
using Core.EventStoreDB.OptimisticConcurrency;
using Core.EventStoreDB.Repository;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/InitializingCart/ShoppingCartInitialized.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/InitializingCart/ShoppingCartInitialized.cs
index 087287873..eb324604e 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/InitializingCart/ShoppingCartInitialized.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/InitializingCart/ShoppingCartInitialized.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Events;
namespace Carts.ShoppingCarts.InitializingCart;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/Products/PricedProductItem.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/Products/PricedProductItem.cs
index 7f7cf8abd..250964906 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/Products/PricedProductItem.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/Products/PricedProductItem.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace Carts.ShoppingCarts.Products;
public class PricedProductItem
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/Products/ProductItem.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/Products/ProductItem.cs
index 19f2456bf..76e0b3fe1 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/Products/ProductItem.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/Products/ProductItem.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace Carts.ShoppingCarts.Products;
public class ProductItem
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/RemovingProduct/ProductRemoved.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/RemovingProduct/ProductRemoved.cs
index bdd0f8823..695a65469 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/RemovingProduct/ProductRemoved.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/RemovingProduct/ProductRemoved.cs
@@ -1,4 +1,3 @@
-using System;
using Carts.ShoppingCarts.Products;
using Core.Events;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/RemovingProduct/RemoveProduct.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/RemovingProduct/RemoveProduct.cs
index 1f0aec4e4..5175d1a0e 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/RemovingProduct/RemoveProduct.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/RemovingProduct/RemoveProduct.cs
@@ -1,7 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
-using Carts.ShoppingCarts.AddingProduct;
using Carts.ShoppingCarts.Products;
using Core.Commands;
using Core.EventStoreDB.OptimisticConcurrency;
diff --git a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/ShoppingCart.cs b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/ShoppingCart.cs
index 557f904b0..8cabf7d68 100644
--- a/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/ShoppingCart.cs
+++ b/Sample/EventStoreDB/ECommerce/Carts/Carts/ShoppingCarts/ShoppingCart.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
using Carts.Pricing;
using Carts.ShoppingCarts.AddingProduct;
using Carts.ShoppingCarts.ConfirmingCart;
diff --git a/Sample/EventStoreDB/Simple/ECommerce.Api.Tests/ECommerce.Api.Tests.csproj b/Sample/EventStoreDB/Simple/ECommerce.Api.Tests/ECommerce.Api.Tests.csproj
index 2fa918b15..551d912dd 100644
--- a/Sample/EventStoreDB/Simple/ECommerce.Api.Tests/ECommerce.Api.Tests.csproj
+++ b/Sample/EventStoreDB/Simple/ECommerce.Api.Tests/ECommerce.Api.Tests.csproj
@@ -2,10 +2,6 @@
net6.0
- enable
- true
- trx%3bLogFileName=$(MSBuildProjectName).trx
- $(MSBuildThisFileDirectory)/bin/TestResults/$(TargetFramework)
diff --git a/Sample/EventStoreDB/Simple/ECommerce.Api.Tests/ShoppingCarts/AddingProduct/AddProductTests.cs b/Sample/EventStoreDB/Simple/ECommerce.Api.Tests/ShoppingCarts/AddingProduct/AddProductTests.cs
index 18ac86aee..45771b914 100644
--- a/Sample/EventStoreDB/Simple/ECommerce.Api.Tests/ShoppingCarts/AddingProduct/AddProductTests.cs
+++ b/Sample/EventStoreDB/Simple/ECommerce.Api.Tests/ShoppingCarts/AddingProduct/AddProductTests.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Linq;
using System.Net;
-using System.Net.Http;
-using System.Threading.Tasks;
using Core.Api.Testing;
using ECommerce.Api.Requests;
using ECommerce.ShoppingCarts;
diff --git a/Sample/EventStoreDB/Simple/ECommerce.Api.Tests/ShoppingCarts/Confirming/ConfirmShoppingCartTests.cs b/Sample/EventStoreDB/Simple/ECommerce.Api.Tests/ShoppingCarts/Confirming/ConfirmShoppingCartTests.cs
index bbb1c9d4d..c902039c4 100644
--- a/Sample/EventStoreDB/Simple/ECommerce.Api.Tests/ShoppingCarts/Confirming/ConfirmShoppingCartTests.cs
+++ b/Sample/EventStoreDB/Simple/ECommerce.Api.Tests/ShoppingCarts/Confirming/ConfirmShoppingCartTests.cs
@@ -1,7 +1,4 @@
-using System;
using System.Net;
-using System.Net.Http;
-using System.Threading.Tasks;
using Core.Api.Testing;
using ECommerce.Api.Requests;
using ECommerce.ShoppingCarts;
diff --git a/Sample/EventStoreDB/Simple/ECommerce.Api.Tests/ShoppingCarts/Initializing/InitializeShoppingCartTests.cs b/Sample/EventStoreDB/Simple/ECommerce.Api.Tests/ShoppingCarts/Initializing/InitializeShoppingCartTests.cs
index d4bcf865f..d7bc81f78 100644
--- a/Sample/EventStoreDB/Simple/ECommerce.Api.Tests/ShoppingCarts/Initializing/InitializeShoppingCartTests.cs
+++ b/Sample/EventStoreDB/Simple/ECommerce.Api.Tests/ShoppingCarts/Initializing/InitializeShoppingCartTests.cs
@@ -1,7 +1,4 @@
-using System;
using System.Net;
-using System.Net.Http;
-using System.Threading.Tasks;
using Core.Api.Testing;
using ECommerce.Api.Requests;
using ECommerce.ShoppingCarts;
diff --git a/Sample/EventStoreDB/Simple/ECommerce.Api.Tests/ShoppingCarts/RemovingProduct/RemoveProductTests.cs b/Sample/EventStoreDB/Simple/ECommerce.Api.Tests/ShoppingCarts/RemovingProduct/RemoveProductTests.cs
index f0cbf10be..293d76265 100644
--- a/Sample/EventStoreDB/Simple/ECommerce.Api.Tests/ShoppingCarts/RemovingProduct/RemoveProductTests.cs
+++ b/Sample/EventStoreDB/Simple/ECommerce.Api.Tests/ShoppingCarts/RemovingProduct/RemoveProductTests.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Linq;
using System.Net;
-using System.Net.Http;
-using System.Threading.Tasks;
using Core.Api.Testing;
using ECommerce.Api.Requests;
using ECommerce.ShoppingCarts;
diff --git a/Sample/EventStoreDB/Simple/ECommerce.Api/Controllers/ShoppingCartsController.cs b/Sample/EventStoreDB/Simple/ECommerce.Api/Controllers/ShoppingCartsController.cs
index 79f0464ec..991e28287 100644
--- a/Sample/EventStoreDB/Simple/ECommerce.Api/Controllers/ShoppingCartsController.cs
+++ b/Sample/EventStoreDB/Simple/ECommerce.Api/Controllers/ShoppingCartsController.cs
@@ -1,7 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Threading;
-using System.Threading.Tasks;
using Core.WebApi.Headers;
using Microsoft.AspNetCore.Mvc;
using ECommerce.Api.Requests;
diff --git a/Sample/EventStoreDB/Simple/ECommerce.Api/ECommerce.Api.csproj b/Sample/EventStoreDB/Simple/ECommerce.Api/ECommerce.Api.csproj
index e6442c88c..f73c86985 100644
--- a/Sample/EventStoreDB/Simple/ECommerce.Api/ECommerce.Api.csproj
+++ b/Sample/EventStoreDB/Simple/ECommerce.Api/ECommerce.Api.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Sample/EventStoreDB/Simple/ECommerce.Api/Program.cs b/Sample/EventStoreDB/Simple/ECommerce.Api/Program.cs
index 9dff0a8fa..97ce9a971 100644
--- a/Sample/EventStoreDB/Simple/ECommerce.Api/Program.cs
+++ b/Sample/EventStoreDB/Simple/ECommerce.Api/Program.cs
@@ -1,7 +1,4 @@
using ECommerce.Api;
-using Microsoft.AspNetCore.Hosting;
-using Microsoft.Extensions.Hosting;
-using Microsoft.Extensions.Logging;
Host.CreateDefaultBuilder(args).ConfigureWebHostDefaults(webBuilder =>
{
diff --git a/Sample/EventStoreDB/Simple/ECommerce.Api/Requests/ShoppingCartsRequests.cs b/Sample/EventStoreDB/Simple/ECommerce.Api/Requests/ShoppingCartsRequests.cs
index 1ea846b9c..aafe77457 100644
--- a/Sample/EventStoreDB/Simple/ECommerce.Api/Requests/ShoppingCartsRequests.cs
+++ b/Sample/EventStoreDB/Simple/ECommerce.Api/Requests/ShoppingCartsRequests.cs
@@ -1,6 +1,4 @@
-using System;
-
-namespace ECommerce.Api.Requests;
+namespace ECommerce.Api.Requests;
public record InitializeShoppingCartRequest(
Guid? ClientId
diff --git a/Sample/EventStoreDB/Simple/ECommerce.Api/Startup.cs b/Sample/EventStoreDB/Simple/ECommerce.Api/Startup.cs
index bde0cec52..410c6da0d 100644
--- a/Sample/EventStoreDB/Simple/ECommerce.Api/Startup.cs
+++ b/Sample/EventStoreDB/Simple/ECommerce.Api/Startup.cs
@@ -8,11 +8,6 @@
using Core.WebApi.Tracing.Correlation;
using ECommerce.Core;
using EventStore.Client;
-using Microsoft.AspNetCore.Builder;
-using Microsoft.AspNetCore.Hosting;
-using Microsoft.Extensions.Configuration;
-using Microsoft.Extensions.DependencyInjection;
-using Microsoft.Extensions.Hosting;
using Microsoft.OpenApi.Models;
namespace ECommerce.Api;
diff --git a/Sample/EventStoreDB/Simple/ECommerce.Core/Commands/CommandHandler.cs b/Sample/EventStoreDB/Simple/ECommerce.Core/Commands/CommandHandler.cs
index b2ba46dea..1702970ab 100644
--- a/Sample/EventStoreDB/Simple/ECommerce.Core/Commands/CommandHandler.cs
+++ b/Sample/EventStoreDB/Simple/ECommerce.Core/Commands/CommandHandler.cs
@@ -1,7 +1,4 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
-using Core.EventStoreDB.OptimisticConcurrency;
+using Core.EventStoreDB.OptimisticConcurrency;
using ECommerce.Core.EventStoreDB;
using EventStore.Client;
using Microsoft.Extensions.DependencyInjection;
diff --git a/Sample/EventStoreDB/Simple/ECommerce.Core/ECommerce.Core.csproj b/Sample/EventStoreDB/Simple/ECommerce.Core/ECommerce.Core.csproj
index 7e3d08d20..90dbe6975 100644
--- a/Sample/EventStoreDB/Simple/ECommerce.Core/ECommerce.Core.csproj
+++ b/Sample/EventStoreDB/Simple/ECommerce.Core/ECommerce.Core.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Sample/EventStoreDB/Simple/ECommerce.Core/EventStoreDB/EventStoreDBExtensions.cs b/Sample/EventStoreDB/Simple/ECommerce.Core/EventStoreDB/EventStoreDBExtensions.cs
index 1676074da..715b9c4da 100644
--- a/Sample/EventStoreDB/Simple/ECommerce.Core/EventStoreDB/EventStoreDBExtensions.cs
+++ b/Sample/EventStoreDB/Simple/ECommerce.Core/EventStoreDB/EventStoreDBExtensions.cs
@@ -1,7 +1,3 @@
-using System;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
using Core.EventStoreDB.Serialization;
using EventStore.Client;
diff --git a/Sample/EventStoreDB/Simple/ECommerce.Core/Projections/EntityFrameworkProjection.cs b/Sample/EventStoreDB/Simple/ECommerce.Core/Projections/EntityFrameworkProjection.cs
index cc6321400..a28f879a9 100644
--- a/Sample/EventStoreDB/Simple/ECommerce.Core/Projections/EntityFrameworkProjection.cs
+++ b/Sample/EventStoreDB/Simple/ECommerce.Core/Projections/EntityFrameworkProjection.cs
@@ -1,9 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
-using Core.Events;
+using Core.Events;
using Core.Events.NoMediator;
using ECommerce.Core.Queries;
using Microsoft.EntityFrameworkCore;
diff --git a/Sample/EventStoreDB/Simple/ECommerce.Core/Queries/QueryHandler.cs b/Sample/EventStoreDB/Simple/ECommerce.Core/Queries/QueryHandler.cs
index edb2d1492..ff74b1199 100644
--- a/Sample/EventStoreDB/Simple/ECommerce.Core/Queries/QueryHandler.cs
+++ b/Sample/EventStoreDB/Simple/ECommerce.Core/Queries/QueryHandler.cs
@@ -1,9 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
-using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
namespace ECommerce.Core.Queries;
diff --git a/Sample/EventStoreDB/Simple/ECommerce/Configuration.cs b/Sample/EventStoreDB/Simple/ECommerce/Configuration.cs
index ffd455c2e..abffc9afa 100644
--- a/Sample/EventStoreDB/Simple/ECommerce/Configuration.cs
+++ b/Sample/EventStoreDB/Simple/ECommerce/Configuration.cs
@@ -1,5 +1,4 @@
-using System;
-using ECommerce.Pricing;
+using ECommerce.Pricing;
using ECommerce.ShoppingCarts;
using ECommerce.Storage;
using Microsoft.EntityFrameworkCore;
diff --git a/Sample/EventStoreDB/Simple/ECommerce/ECommerce.csproj b/Sample/EventStoreDB/Simple/ECommerce/ECommerce.csproj
index b1be8a25a..78fc9ceab 100644
--- a/Sample/EventStoreDB/Simple/ECommerce/ECommerce.csproj
+++ b/Sample/EventStoreDB/Simple/ECommerce/ECommerce.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Sample/EventStoreDB/Simple/ECommerce/Pricing/ProductPricing/RandomProductPriceCalculator.cs b/Sample/EventStoreDB/Simple/ECommerce/Pricing/ProductPricing/RandomProductPriceCalculator.cs
index d4a21b4a6..886544e69 100644
--- a/Sample/EventStoreDB/Simple/ECommerce/Pricing/ProductPricing/RandomProductPriceCalculator.cs
+++ b/Sample/EventStoreDB/Simple/ECommerce/Pricing/ProductPricing/RandomProductPriceCalculator.cs
@@ -1,4 +1,3 @@
-using System;
using System.Collections.Concurrent;
using ECommerce.ShoppingCarts.ProductItems;
diff --git a/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/AddingProductItem/AddProductItemToShoppingCart.cs b/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/AddingProductItem/AddProductItemToShoppingCart.cs
index 07118d5b7..8d0274eb1 100644
--- a/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/AddingProductItem/AddProductItemToShoppingCart.cs
+++ b/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/AddingProductItem/AddProductItemToShoppingCart.cs
@@ -1,4 +1,3 @@
-using System;
using ECommerce.Pricing.ProductPricing;
using ECommerce.ShoppingCarts.ProductItems;
diff --git a/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/Confirming/ConfirmShoppingCart.cs b/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/Confirming/ConfirmShoppingCart.cs
index edf289e41..04167c38f 100644
--- a/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/Confirming/ConfirmShoppingCart.cs
+++ b/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/Confirming/ConfirmShoppingCart.cs
@@ -1,6 +1,4 @@
-using System;
-
-namespace ECommerce.ShoppingCarts.Confirming;
+namespace ECommerce.ShoppingCarts.Confirming;
public record ConfirmShoppingCart(
Guid ShoppingCartId
diff --git a/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/GettingCartById/GetCartById.cs b/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/GettingCartById/GetCartById.cs
index 4bbecb870..d2ae753ee 100644
--- a/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/GettingCartById/GetCartById.cs
+++ b/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/GettingCartById/GetCartById.cs
@@ -1,7 +1,3 @@
-using System;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
namespace ECommerce.ShoppingCarts.GettingCartById;
diff --git a/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/GettingCartById/ShoppingCartDetails.cs b/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/GettingCartById/ShoppingCartDetails.cs
index 8fbca8efc..84ea1f53e 100644
--- a/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/GettingCartById/ShoppingCartDetails.cs
+++ b/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/GettingCartById/ShoppingCartDetails.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
using Core.Events;
namespace ECommerce.ShoppingCarts.GettingCartById;
diff --git a/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/GettingCarts/GetCarts.cs b/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/GettingCarts/GetCarts.cs
index a01114366..82c750f31 100644
--- a/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/GettingCarts/GetCarts.cs
+++ b/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/GettingCarts/GetCarts.cs
@@ -1,8 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
namespace ECommerce.ShoppingCarts.GettingCarts;
diff --git a/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/GettingCarts/ShoppingCartShortInfo.cs b/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/GettingCarts/ShoppingCartShortInfo.cs
index 5d9270435..114bd7653 100644
--- a/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/GettingCarts/ShoppingCartShortInfo.cs
+++ b/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/GettingCarts/ShoppingCartShortInfo.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Events;
namespace ECommerce.ShoppingCarts.GettingCarts;
diff --git a/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/Initializing/InitializeShoppingCart.cs b/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/Initializing/InitializeShoppingCart.cs
index e0248ceea..96edf3c08 100644
--- a/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/Initializing/InitializeShoppingCart.cs
+++ b/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/Initializing/InitializeShoppingCart.cs
@@ -1,6 +1,4 @@
-using System;
-
-namespace ECommerce.ShoppingCarts.Initializing;
+namespace ECommerce.ShoppingCarts.Initializing;
public record InitializeShoppingCart(
Guid ShoppingCartId,
diff --git a/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/ProductItems/PricedProductItem.cs b/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/ProductItems/PricedProductItem.cs
index 78ba85089..b8deb6de0 100644
--- a/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/ProductItems/PricedProductItem.cs
+++ b/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/ProductItems/PricedProductItem.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace ECommerce.ShoppingCarts.ProductItems;
public record PricedProductItem(
diff --git a/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/ProductItems/ProductItem.cs b/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/ProductItems/ProductItem.cs
index 2897e905b..bf35c662d 100644
--- a/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/ProductItems/ProductItem.cs
+++ b/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/ProductItems/ProductItem.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace ECommerce.ShoppingCarts.ProductItems;
public record ProductItem(
diff --git a/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/ProductItems/ProductItemsList.cs b/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/ProductItems/ProductItemsList.cs
index 2991bd49e..2fa8e319a 100644
--- a/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/ProductItems/ProductItemsList.cs
+++ b/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/ProductItems/ProductItemsList.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-
-namespace ECommerce.ShoppingCarts.ProductItems;
+namespace ECommerce.ShoppingCarts.ProductItems;
public class ProductItemsList
{
diff --git a/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/RemovingProductItem/RemoveProductItemFromShoppingCart.cs b/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/RemovingProductItem/RemoveProductItemFromShoppingCart.cs
index 85724cc88..7ea02a920 100644
--- a/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/RemovingProductItem/RemoveProductItemFromShoppingCart.cs
+++ b/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/RemovingProductItem/RemoveProductItemFromShoppingCart.cs
@@ -1,4 +1,3 @@
-using System;
using ECommerce.ShoppingCarts.ProductItems;
namespace ECommerce.ShoppingCarts.RemovingProductItem;
diff --git a/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/ShoppingCart.cs b/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/ShoppingCart.cs
index 1beee712f..174857294 100644
--- a/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/ShoppingCart.cs
+++ b/Sample/EventStoreDB/Simple/ECommerce/ShoppingCarts/ShoppingCart.cs
@@ -1,5 +1,4 @@
-using System;
-using ECommerce.ShoppingCarts.ProductItems;
+using ECommerce.ShoppingCarts.ProductItems;
namespace ECommerce.ShoppingCarts;
diff --git a/Sample/EventsVersioning/ECommerce.V1/ECommerce.V1.csproj b/Sample/EventsVersioning/ECommerce.V1/ECommerce.V1.csproj
index 31e3eb276..4f444d8c8 100644
--- a/Sample/EventsVersioning/ECommerce.V1/ECommerce.V1.csproj
+++ b/Sample/EventsVersioning/ECommerce.V1/ECommerce.V1.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Sample/EventsVersioning/ECommerce.V1/Events.cs b/Sample/EventsVersioning/ECommerce.V1/Events.cs
index 1a7706bff..6bad062fe 100644
--- a/Sample/EventsVersioning/ECommerce.V1/Events.cs
+++ b/Sample/EventsVersioning/ECommerce.V1/Events.cs
@@ -1,6 +1,4 @@
-using System;
-
-namespace ECommerce.V1;
+namespace ECommerce.V1;
public record ProductItem(
Guid ProductId,
diff --git a/Sample/EventsVersioning/EventsVersioning.Tests/Downcasters/ChangedStructure.cs b/Sample/EventsVersioning/EventsVersioning.Tests/Downcasters/ChangedStructure.cs
index 56e359fb4..37381b2f6 100644
--- a/Sample/EventsVersioning/EventsVersioning.Tests/Downcasters/ChangedStructure.cs
+++ b/Sample/EventsVersioning/EventsVersioning.Tests/Downcasters/ChangedStructure.cs
@@ -1,5 +1,4 @@
-using System;
-using System.Text.Json;
+using System.Text.Json;
using FluentAssertions;
using Xunit;
using V1 = ECommerce.V1;
diff --git a/Sample/EventsVersioning/EventsVersioning.Tests/EventsVersioning.Tests.csproj b/Sample/EventsVersioning/EventsVersioning.Tests/EventsVersioning.Tests.csproj
index db36e0216..8b34e5161 100644
--- a/Sample/EventsVersioning/EventsVersioning.Tests/EventsVersioning.Tests.csproj
+++ b/Sample/EventsVersioning/EventsVersioning.Tests/EventsVersioning.Tests.csproj
@@ -2,10 +2,6 @@
net6.0
- enable
- true
- trx%3bLogFileName=$(MSBuildProjectName).trx
- $(MSBuildThisFileDirectory)/bin/TestResults/$(TargetFramework)
diff --git a/Sample/EventsVersioning/EventsVersioning.Tests/SimpleMappings/NewNotRequiredProperty.cs b/Sample/EventsVersioning/EventsVersioning.Tests/SimpleMappings/NewNotRequiredProperty.cs
index 3e470e1a8..9850f643b 100644
--- a/Sample/EventsVersioning/EventsVersioning.Tests/SimpleMappings/NewNotRequiredProperty.cs
+++ b/Sample/EventsVersioning/EventsVersioning.Tests/SimpleMappings/NewNotRequiredProperty.cs
@@ -1,5 +1,4 @@
-using System;
-using System.Text.Json;
+using System.Text.Json;
using FluentAssertions;
using Xunit;
using V1 = ECommerce.V1;
diff --git a/Sample/EventsVersioning/EventsVersioning.Tests/SimpleMappings/NewRequiredProperty.cs b/Sample/EventsVersioning/EventsVersioning.Tests/SimpleMappings/NewRequiredProperty.cs
index 6d3a17f55..e10310ed6 100644
--- a/Sample/EventsVersioning/EventsVersioning.Tests/SimpleMappings/NewRequiredProperty.cs
+++ b/Sample/EventsVersioning/EventsVersioning.Tests/SimpleMappings/NewRequiredProperty.cs
@@ -1,5 +1,4 @@
-using System;
-using System.Text.Json;
+using System.Text.Json;
using FluentAssertions;
using Xunit;
using V1 = ECommerce.V1;
diff --git a/Sample/EventsVersioning/EventsVersioning.Tests/SimpleMappings/RenamedProperty.cs b/Sample/EventsVersioning/EventsVersioning.Tests/SimpleMappings/RenamedProperty.cs
index 9f99e2a02..b450bf50f 100644
--- a/Sample/EventsVersioning/EventsVersioning.Tests/SimpleMappings/RenamedProperty.cs
+++ b/Sample/EventsVersioning/EventsVersioning.Tests/SimpleMappings/RenamedProperty.cs
@@ -1,5 +1,4 @@
-using System;
-using System.Text.Json.Serialization;
+using System.Text.Json.Serialization;
using FluentAssertions;
using Xunit;
using JsonSerializer = System.Text.Json.JsonSerializer;
diff --git a/Sample/EventsVersioning/EventsVersioning.Tests/Transformations/MultipleTransformationsWithDifferentEventTypes.cs b/Sample/EventsVersioning/EventsVersioning.Tests/Transformations/MultipleTransformationsWithDifferentEventTypes.cs
index 7f05cc61c..a81f67ffa 100644
--- a/Sample/EventsVersioning/EventsVersioning.Tests/Transformations/MultipleTransformationsWithDifferentEventTypes.cs
+++ b/Sample/EventsVersioning/EventsVersioning.Tests/Transformations/MultipleTransformationsWithDifferentEventTypes.cs
@@ -1,7 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json;
+using System.Text.Json;
using FluentAssertions;
using Xunit;
using V1 = ECommerce.V1;
diff --git a/Sample/EventsVersioning/EventsVersioning.Tests/Transformations/StreamTransformations.cs b/Sample/EventsVersioning/EventsVersioning.Tests/Transformations/StreamTransformations.cs
index 8ebae161e..51ba5cb5a 100644
--- a/Sample/EventsVersioning/EventsVersioning.Tests/Transformations/StreamTransformations.cs
+++ b/Sample/EventsVersioning/EventsVersioning.Tests/Transformations/StreamTransformations.cs
@@ -1,7 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using V1 = ECommerce.V1;
+using V1 = ECommerce.V1;
using Xunit;
using System.Text.Json;
using FluentAssertions;
diff --git a/Sample/EventsVersioning/EventsVersioning.Tests/Upcasters/ChangedStructure.cs b/Sample/EventsVersioning/EventsVersioning.Tests/Upcasters/ChangedStructure.cs
index d20c5e8a1..6750728f8 100644
--- a/Sample/EventsVersioning/EventsVersioning.Tests/Upcasters/ChangedStructure.cs
+++ b/Sample/EventsVersioning/EventsVersioning.Tests/Upcasters/ChangedStructure.cs
@@ -1,5 +1,4 @@
-using System;
-using System.Text.Json;
+using System.Text.Json;
using FluentAssertions;
using Xunit;
using V1 = ECommerce.V1;
diff --git a/Sample/EventsVersioning/EventsVersioning.Tests/Upcasters/NewRequiredPropertyFromMetadata.cs b/Sample/EventsVersioning/EventsVersioning.Tests/Upcasters/NewRequiredPropertyFromMetadata.cs
index 483d8c2e0..1f47d9af8 100644
--- a/Sample/EventsVersioning/EventsVersioning.Tests/Upcasters/NewRequiredPropertyFromMetadata.cs
+++ b/Sample/EventsVersioning/EventsVersioning.Tests/Upcasters/NewRequiredPropertyFromMetadata.cs
@@ -1,5 +1,4 @@
-using System;
-using System.Text.Json;
+using System.Text.Json;
using FluentAssertions;
using Xunit;
using V1 = ECommerce.V1;
diff --git a/Sample/MeetingsManagement/MeetingsManagement.Api/Controllers/MeetingsController.cs b/Sample/MeetingsManagement/MeetingsManagement.Api/Controllers/MeetingsController.cs
index 445bad1ea..9cabcd151 100644
--- a/Sample/MeetingsManagement/MeetingsManagement.Api/Controllers/MeetingsController.cs
+++ b/Sample/MeetingsManagement/MeetingsManagement.Api/Controllers/MeetingsController.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Threading.Tasks;
using Core.Commands;
using Core.Queries;
using MeetingsManagement.Meetings.CreatingMeeting;
diff --git a/Sample/MeetingsManagement/MeetingsManagement.Api/MeetingsManagement.Api.csproj b/Sample/MeetingsManagement/MeetingsManagement.Api/MeetingsManagement.Api.csproj
index 28970f5c1..916b1c97e 100644
--- a/Sample/MeetingsManagement/MeetingsManagement.Api/MeetingsManagement.Api.csproj
+++ b/Sample/MeetingsManagement/MeetingsManagement.Api/MeetingsManagement.Api.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
@@ -14,7 +12,7 @@
-
+
diff --git a/Sample/MeetingsManagement/MeetingsManagement.Api/Program.cs b/Sample/MeetingsManagement/MeetingsManagement.Api/Program.cs
index aa2c4f39a..859d94de9 100644
--- a/Sample/MeetingsManagement/MeetingsManagement.Api/Program.cs
+++ b/Sample/MeetingsManagement/MeetingsManagement.Api/Program.cs
@@ -1,6 +1,4 @@
using Microsoft.AspNetCore;
-using Microsoft.AspNetCore.Hosting;
-using Microsoft.Extensions.Logging;
namespace MeetingsManagement.Api;
diff --git a/Sample/MeetingsManagement/MeetingsManagement.Api/Startup.cs b/Sample/MeetingsManagement/MeetingsManagement.Api/Startup.cs
index 2753fb653..4ca7048d4 100644
--- a/Sample/MeetingsManagement/MeetingsManagement.Api/Startup.cs
+++ b/Sample/MeetingsManagement/MeetingsManagement.Api/Startup.cs
@@ -3,17 +3,12 @@
using Core.Exceptions;
using Core.Marten.OptimisticConcurrency;
using Core.Serialization.Newtonsoft;
-using Core.Streaming.Kafka;
+using Core.Kafka;
using Core.WebApi.Middlewares.ExceptionHandling;
using Core.WebApi.OptimisticConcurrency;
using Core.WebApi.Swagger;
using Core.WebApi.Tracing.Correlation;
using Marten.Exceptions;
-using Microsoft.AspNetCore.Builder;
-using Microsoft.AspNetCore.Hosting;
-using Microsoft.Extensions.Configuration;
-using Microsoft.Extensions.DependencyInjection;
-using Microsoft.Extensions.Hosting;
using Microsoft.OpenApi.Models;
namespace MeetingsManagement.Api;
diff --git a/Sample/MeetingsManagement/MeetingsManagement.IntegrationTests/Meetings/CreatingMeeting/CreateMeetingTests.cs b/Sample/MeetingsManagement/MeetingsManagement.IntegrationTests/Meetings/CreatingMeeting/CreateMeetingTests.cs
index 4388cf60f..ceca75d7f 100644
--- a/Sample/MeetingsManagement/MeetingsManagement.IntegrationTests/Meetings/CreatingMeeting/CreateMeetingTests.cs
+++ b/Sample/MeetingsManagement/MeetingsManagement.IntegrationTests/Meetings/CreatingMeeting/CreateMeetingTests.cs
@@ -1,7 +1,4 @@
-using System;
using System.Net;
-using System.Net.Http;
-using System.Threading.Tasks;
using Core.Api.Testing;
using Core.Testing;
using FluentAssertions;
diff --git a/Sample/MeetingsManagement/MeetingsManagement.IntegrationTests/Meetings/SchedulingMeetings/ScheduleMeetingTests.cs b/Sample/MeetingsManagement/MeetingsManagement.IntegrationTests/Meetings/SchedulingMeetings/ScheduleMeetingTests.cs
index 5ac7a56f8..4d16af8dd 100644
--- a/Sample/MeetingsManagement/MeetingsManagement.IntegrationTests/Meetings/SchedulingMeetings/ScheduleMeetingTests.cs
+++ b/Sample/MeetingsManagement/MeetingsManagement.IntegrationTests/Meetings/SchedulingMeetings/ScheduleMeetingTests.cs
@@ -1,7 +1,4 @@
-using System;
using System.Net;
-using System.Net.Http;
-using System.Threading.Tasks;
using Core.Api.Testing;
using FluentAssertions;
using MeetingsManagement.Api;
diff --git a/Sample/MeetingsManagement/MeetingsManagement.IntegrationTests/MeetingsManagement.IntegrationTests.csproj b/Sample/MeetingsManagement/MeetingsManagement.IntegrationTests/MeetingsManagement.IntegrationTests.csproj
index 789c6a301..122c49a1a 100644
--- a/Sample/MeetingsManagement/MeetingsManagement.IntegrationTests/MeetingsManagement.IntegrationTests.csproj
+++ b/Sample/MeetingsManagement/MeetingsManagement.IntegrationTests/MeetingsManagement.IntegrationTests.csproj
@@ -2,10 +2,6 @@
net6.0
- enable
- true
- trx%3bLogFileName=$(MSBuildProjectName).trx
- $(MSBuildThisFileDirectory)/bin/TestResults/$(TargetFramework)
diff --git a/Sample/MeetingsManagement/MeetingsManagement/Meetings/CreatingMeeting/CreateMeeting.cs b/Sample/MeetingsManagement/MeetingsManagement/Meetings/CreatingMeeting/CreateMeeting.cs
index 19c6c59ab..a7fd561b6 100644
--- a/Sample/MeetingsManagement/MeetingsManagement/Meetings/CreatingMeeting/CreateMeeting.cs
+++ b/Sample/MeetingsManagement/MeetingsManagement/Meetings/CreatingMeeting/CreateMeeting.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Commands;
using Core.Marten.OptimisticConcurrency;
using Core.Marten.Repository;
diff --git a/Sample/MeetingsManagement/MeetingsManagement/Meetings/CreatingMeeting/MeetingCreated.cs b/Sample/MeetingsManagement/MeetingsManagement/Meetings/CreatingMeeting/MeetingCreated.cs
index ed679c28f..1ca7cc772 100644
--- a/Sample/MeetingsManagement/MeetingsManagement/Meetings/CreatingMeeting/MeetingCreated.cs
+++ b/Sample/MeetingsManagement/MeetingsManagement/Meetings/CreatingMeeting/MeetingCreated.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Events;
namespace MeetingsManagement.Meetings.CreatingMeeting;
diff --git a/Sample/MeetingsManagement/MeetingsManagement/Meetings/GettingMeeting/GetMeeting.cs b/Sample/MeetingsManagement/MeetingsManagement/Meetings/GettingMeeting/GetMeeting.cs
index 9dc53b162..de0d0dbc9 100644
--- a/Sample/MeetingsManagement/MeetingsManagement/Meetings/GettingMeeting/GetMeeting.cs
+++ b/Sample/MeetingsManagement/MeetingsManagement/Meetings/GettingMeeting/GetMeeting.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Queries;
using Marten;
diff --git a/Sample/MeetingsManagement/MeetingsManagement/Meetings/GettingMeeting/MeetingView.cs b/Sample/MeetingsManagement/MeetingsManagement/Meetings/GettingMeeting/MeetingView.cs
index 60c19b4d6..80cc54cf5 100644
--- a/Sample/MeetingsManagement/MeetingsManagement/Meetings/GettingMeeting/MeetingView.cs
+++ b/Sample/MeetingsManagement/MeetingsManagement/Meetings/GettingMeeting/MeetingView.cs
@@ -1,4 +1,3 @@
-using System;
using Marten.Events.Aggregation;
using MeetingsManagement.Meetings.CreatingMeeting;
using MeetingsManagement.Meetings.SchedulingMeeting;
diff --git a/Sample/MeetingsManagement/MeetingsManagement/Meetings/Meeting.cs b/Sample/MeetingsManagement/MeetingsManagement/Meetings/Meeting.cs
index 7fcb4ce04..cbd28b285 100644
--- a/Sample/MeetingsManagement/MeetingsManagement/Meetings/Meeting.cs
+++ b/Sample/MeetingsManagement/MeetingsManagement/Meetings/Meeting.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Aggregates;
using MeetingsManagement.Meetings.CreatingMeeting;
using MeetingsManagement.Meetings.SchedulingMeeting;
diff --git a/Sample/MeetingsManagement/MeetingsManagement/Meetings/SchedulingMeeting/MeetingScheduled.cs b/Sample/MeetingsManagement/MeetingsManagement/Meetings/SchedulingMeeting/MeetingScheduled.cs
index 2d96d337e..82042cef4 100644
--- a/Sample/MeetingsManagement/MeetingsManagement/Meetings/SchedulingMeeting/MeetingScheduled.cs
+++ b/Sample/MeetingsManagement/MeetingsManagement/Meetings/SchedulingMeeting/MeetingScheduled.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Events;
using MeetingsManagement.Meetings.ValueObjects;
diff --git a/Sample/MeetingsManagement/MeetingsManagement/Meetings/SchedulingMeeting/ScheduleMeeting.cs b/Sample/MeetingsManagement/MeetingsManagement/Meetings/SchedulingMeeting/ScheduleMeeting.cs
index 82b5fba90..a0fcdb693 100644
--- a/Sample/MeetingsManagement/MeetingsManagement/Meetings/SchedulingMeeting/ScheduleMeeting.cs
+++ b/Sample/MeetingsManagement/MeetingsManagement/Meetings/SchedulingMeeting/ScheduleMeeting.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Commands;
using Core.Marten.OptimisticConcurrency;
using Core.Marten.Repository;
diff --git a/Sample/MeetingsManagement/MeetingsManagement/Meetings/ValueObjects/DateRange.cs b/Sample/MeetingsManagement/MeetingsManagement/Meetings/ValueObjects/DateRange.cs
index fbb9e9101..a5ae5a200 100644
--- a/Sample/MeetingsManagement/MeetingsManagement/Meetings/ValueObjects/DateRange.cs
+++ b/Sample/MeetingsManagement/MeetingsManagement/Meetings/ValueObjects/DateRange.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace MeetingsManagement.Meetings.ValueObjects;
public class DateRange
diff --git a/Sample/MeetingsManagement/MeetingsManagement/MeetingsManagement.csproj b/Sample/MeetingsManagement/MeetingsManagement/MeetingsManagement.csproj
index 109cae827..09a22b93a 100644
--- a/Sample/MeetingsManagement/MeetingsManagement/MeetingsManagement.csproj
+++ b/Sample/MeetingsManagement/MeetingsManagement/MeetingsManagement.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Sample/MeetingsManagement/MeetingsManagement/Notifications/NotifyingByEvent/EmailNotifier.cs b/Sample/MeetingsManagement/MeetingsManagement/Notifications/NotifyingByEvent/EmailNotifier.cs
index 5274a95ae..ce49f7d4b 100644
--- a/Sample/MeetingsManagement/MeetingsManagement/Notifications/NotifyingByEvent/EmailNotifier.cs
+++ b/Sample/MeetingsManagement/MeetingsManagement/Notifications/NotifyingByEvent/EmailNotifier.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Events;
using MeetingsManagement.Meetings.CreatingMeeting;
diff --git a/Sample/MeetingsManagement/MeetingsSearch.Api/Controllers/MeetingsController.cs b/Sample/MeetingsManagement/MeetingsSearch.Api/Controllers/MeetingsController.cs
index cfd66a090..bf7bccb74 100644
--- a/Sample/MeetingsManagement/MeetingsSearch.Api/Controllers/MeetingsController.cs
+++ b/Sample/MeetingsManagement/MeetingsSearch.Api/Controllers/MeetingsController.cs
@@ -1,5 +1,3 @@
-using System.Collections.Generic;
-using System.Threading.Tasks;
using Core.Queries;
using MeetingsSearch.Meetings;
using MeetingsSearch.Meetings.SearchingMeetings;
diff --git a/Sample/MeetingsManagement/MeetingsSearch.Api/MeetingsSearch.Api.csproj b/Sample/MeetingsManagement/MeetingsSearch.Api/MeetingsSearch.Api.csproj
index 8aef658b0..adb4422bf 100644
--- a/Sample/MeetingsManagement/MeetingsSearch.Api/MeetingsSearch.Api.csproj
+++ b/Sample/MeetingsManagement/MeetingsSearch.Api/MeetingsSearch.Api.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
@@ -13,7 +11,7 @@
-
+
diff --git a/Sample/MeetingsManagement/MeetingsSearch.Api/Program.cs b/Sample/MeetingsManagement/MeetingsSearch.Api/Program.cs
index 26dcd1006..4ccf53548 100644
--- a/Sample/MeetingsManagement/MeetingsSearch.Api/Program.cs
+++ b/Sample/MeetingsManagement/MeetingsSearch.Api/Program.cs
@@ -1,6 +1,4 @@
using Microsoft.AspNetCore;
-using Microsoft.AspNetCore.Hosting;
-using Microsoft.Extensions.Logging;
namespace MeetingsSearch.Api;
diff --git a/Sample/MeetingsManagement/MeetingsSearch.Api/Startup.cs b/Sample/MeetingsManagement/MeetingsSearch.Api/Startup.cs
index b7623c9f1..80cd02ab4 100644
--- a/Sample/MeetingsManagement/MeetingsSearch.Api/Startup.cs
+++ b/Sample/MeetingsManagement/MeetingsSearch.Api/Startup.cs
@@ -1,14 +1,9 @@
using Core;
using Core.Serialization.Newtonsoft;
-using Core.Streaming.Kafka;
+using Core.Kafka;
using Core.WebApi.Middlewares.ExceptionHandling;
using Core.WebApi.Swagger;
using Core.WebApi.Tracing.Correlation;
-using Microsoft.AspNetCore.Builder;
-using Microsoft.AspNetCore.Hosting;
-using Microsoft.Extensions.Configuration;
-using Microsoft.Extensions.DependencyInjection;
-using Microsoft.Extensions.Hosting;
using Microsoft.OpenApi.Models;
namespace MeetingsSearch.Api;
diff --git a/Sample/MeetingsManagement/MeetingsSearch.IntegrationTests/Meetings/CreatingMeeting/CreateMeetingTests.cs b/Sample/MeetingsManagement/MeetingsSearch.IntegrationTests/Meetings/CreatingMeeting/CreateMeetingTests.cs
index 6be534b60..a38696316 100644
--- a/Sample/MeetingsManagement/MeetingsSearch.IntegrationTests/Meetings/CreatingMeeting/CreateMeetingTests.cs
+++ b/Sample/MeetingsManagement/MeetingsSearch.IntegrationTests/Meetings/CreatingMeeting/CreateMeetingTests.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Threading.Tasks;
using Core.Api.Testing;
using Core.Testing;
using FluentAssertions;
diff --git a/Sample/MeetingsManagement/MeetingsSearch.IntegrationTests/MeetingsSearch.IntegrationTests.csproj b/Sample/MeetingsManagement/MeetingsSearch.IntegrationTests/MeetingsSearch.IntegrationTests.csproj
index 4684f8134..9163b3eae 100644
--- a/Sample/MeetingsManagement/MeetingsSearch.IntegrationTests/MeetingsSearch.IntegrationTests.csproj
+++ b/Sample/MeetingsManagement/MeetingsSearch.IntegrationTests/MeetingsSearch.IntegrationTests.csproj
@@ -2,10 +2,6 @@
net6.0
- enable
- true
- trx%3bLogFileName=$(MSBuildProjectName).trx
- $(MSBuildThisFileDirectory)/bin/TestResults/$(TargetFramework)
diff --git a/Sample/MeetingsManagement/MeetingsSearch/Meetings/Config.cs b/Sample/MeetingsManagement/MeetingsSearch/Meetings/Config.cs
index bfe14e94e..65e51cb3a 100644
--- a/Sample/MeetingsManagement/MeetingsSearch/Meetings/Config.cs
+++ b/Sample/MeetingsManagement/MeetingsSearch/Meetings/Config.cs
@@ -1,4 +1,3 @@
-using System.Collections.Generic;
using Core.ElasticSearch.Repository;
using Core.Events;
using Core.Queries;
diff --git a/Sample/MeetingsManagement/MeetingsSearch/Meetings/CreatingMeeting/MeetingCreated.cs b/Sample/MeetingsManagement/MeetingsSearch/Meetings/CreatingMeeting/MeetingCreated.cs
index 12be6d4ae..34a00ed09 100644
--- a/Sample/MeetingsManagement/MeetingsSearch/Meetings/CreatingMeeting/MeetingCreated.cs
+++ b/Sample/MeetingsManagement/MeetingsSearch/Meetings/CreatingMeeting/MeetingCreated.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.ElasticSearch.Repository;
using Core.Events;
diff --git a/Sample/MeetingsManagement/MeetingsSearch/Meetings/Meeting.cs b/Sample/MeetingsManagement/MeetingsSearch/Meetings/Meeting.cs
index 8c7b3369d..b8b4b7918 100644
--- a/Sample/MeetingsManagement/MeetingsSearch/Meetings/Meeting.cs
+++ b/Sample/MeetingsManagement/MeetingsSearch/Meetings/Meeting.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Aggregates;
using Newtonsoft.Json;
diff --git a/Sample/MeetingsManagement/MeetingsSearch/Meetings/SearchingMeetings/SearchMeetings.cs b/Sample/MeetingsManagement/MeetingsSearch/Meetings/SearchingMeetings/SearchMeetings.cs
index c2ffbc6ad..99d69bbcf 100644
--- a/Sample/MeetingsManagement/MeetingsSearch/Meetings/SearchingMeetings/SearchMeetings.cs
+++ b/Sample/MeetingsManagement/MeetingsSearch/Meetings/SearchingMeetings/SearchMeetings.cs
@@ -1,7 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Threading;
-using System.Threading.Tasks;
using Core.ElasticSearch.Indices;
using Core.Queries;
diff --git a/Sample/MeetingsManagement/MeetingsSearch/MeetingsSearch.csproj b/Sample/MeetingsManagement/MeetingsSearch/MeetingsSearch.csproj
index 5b7214d7f..05b66ae56 100644
--- a/Sample/MeetingsManagement/MeetingsSearch/MeetingsSearch.csproj
+++ b/Sample/MeetingsManagement/MeetingsSearch/MeetingsSearch.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Sample/Tickets/Tickets.Api.Tests/Config/TestConfiguration.cs b/Sample/Tickets/Tickets.Api.Tests/Config/TestConfiguration.cs
index 30f2cba3e..2559da11e 100644
--- a/Sample/Tickets/Tickets.Api.Tests/Config/TestConfiguration.cs
+++ b/Sample/Tickets/Tickets.Api.Tests/Config/TestConfiguration.cs
@@ -1,5 +1,3 @@
-using System.Collections.Generic;
-
namespace Tickets.Api.Tests.Config;
public static class TestConfiguration
diff --git a/Sample/Tickets/Tickets.Api.Tests/Reservations/CreatingTentativeReservation/CreateTentativeReservationTests.cs b/Sample/Tickets/Tickets.Api.Tests/Reservations/CreatingTentativeReservation/CreateTentativeReservationTests.cs
index 2dc01d597..bf0ecaa70 100644
--- a/Sample/Tickets/Tickets.Api.Tests/Reservations/CreatingTentativeReservation/CreateTentativeReservationTests.cs
+++ b/Sample/Tickets/Tickets.Api.Tests/Reservations/CreatingTentativeReservation/CreateTentativeReservationTests.cs
@@ -1,9 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
using System.Net;
-using System.Net.Http;
-using System.Threading.Tasks;
using Core.Api.Testing;
using Core.Testing;
using FluentAssertions;
diff --git a/Sample/Tickets/Tickets.Api.Tests/Tickets.Api.Tests.csproj b/Sample/Tickets/Tickets.Api.Tests/Tickets.Api.Tests.csproj
index 56f26b580..dffa1f001 100644
--- a/Sample/Tickets/Tickets.Api.Tests/Tickets.Api.Tests.csproj
+++ b/Sample/Tickets/Tickets.Api.Tests/Tickets.Api.Tests.csproj
@@ -2,10 +2,6 @@
net6.0
- enable
- true
- trx%3bLogFileName=$(MSBuildProjectName).trx
- $(MSBuildThisFileDirectory)/bin/TestResults/$(TargetFramework)
diff --git a/Sample/Tickets/Tickets.Api/Controllers/MaintenanceController.cs b/Sample/Tickets/Tickets.Api/Controllers/MaintenanceController.cs
index 6cc60b23e..56a7b230a 100644
--- a/Sample/Tickets/Tickets.Api/Controllers/MaintenanceController.cs
+++ b/Sample/Tickets/Tickets.Api/Controllers/MaintenanceController.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Threading.Tasks;
using Core.Commands;
using Microsoft.AspNetCore.Mvc;
using Tickets.Api.Requests;
diff --git a/Sample/Tickets/Tickets.Api/Controllers/ReservationsController.cs b/Sample/Tickets/Tickets.Api/Controllers/ReservationsController.cs
index 0835ed478..f2143e75d 100644
--- a/Sample/Tickets/Tickets.Api/Controllers/ReservationsController.cs
+++ b/Sample/Tickets/Tickets.Api/Controllers/ReservationsController.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Threading.Tasks;
using Core.Commands;
using Core.Ids;
using Core.Queries;
diff --git a/Sample/Tickets/Tickets.Api/Program.cs b/Sample/Tickets/Tickets.Api/Program.cs
index d0392a826..7699c93e7 100644
--- a/Sample/Tickets/Tickets.Api/Program.cs
+++ b/Sample/Tickets/Tickets.Api/Program.cs
@@ -1,7 +1,3 @@
-using Microsoft.AspNetCore.Hosting;
-using Microsoft.Extensions.Hosting;
-using Microsoft.Extensions.Logging;
-
namespace Tickets.Api;
public class Program
diff --git a/Sample/Tickets/Tickets.Api/Requests/ChangeSeatRequest.cs b/Sample/Tickets/Tickets.Api/Requests/ChangeSeatRequest.cs
index 0e63fa20e..329458eee 100644
--- a/Sample/Tickets/Tickets.Api/Requests/ChangeSeatRequest.cs
+++ b/Sample/Tickets/Tickets.Api/Requests/ChangeSeatRequest.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace Tickets.Api.Requests;
public class ChangeSeatRequest
diff --git a/Sample/Tickets/Tickets.Api/Requests/CreateTentativeReservationRequest.cs b/Sample/Tickets/Tickets.Api/Requests/CreateTentativeReservationRequest.cs
index 0fc37dee0..35a438e2a 100644
--- a/Sample/Tickets/Tickets.Api/Requests/CreateTentativeReservationRequest.cs
+++ b/Sample/Tickets/Tickets.Api/Requests/CreateTentativeReservationRequest.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace Tickets.Api.Requests;
public class CreateTentativeReservationRequest
diff --git a/Sample/Tickets/Tickets.Api/Responses/PagedListResponse.cs b/Sample/Tickets/Tickets.Api/Responses/PagedListResponse.cs
index aaad407c2..38b69b44a 100644
--- a/Sample/Tickets/Tickets.Api/Responses/PagedListResponse.cs
+++ b/Sample/Tickets/Tickets.Api/Responses/PagedListResponse.cs
@@ -1,5 +1,3 @@
-using System.Collections.Generic;
-using System.Linq;
using Marten.Pagination;
using Newtonsoft.Json;
diff --git a/Sample/Tickets/Tickets.Api/Startup.cs b/Sample/Tickets/Tickets.Api/Startup.cs
index c1417b741..31baab451 100644
--- a/Sample/Tickets/Tickets.Api/Startup.cs
+++ b/Sample/Tickets/Tickets.Api/Startup.cs
@@ -8,11 +8,6 @@
using Core.WebApi.Swagger;
using Core.WebApi.Tracing.Correlation;
using Marten.Exceptions;
-using Microsoft.AspNetCore.Builder;
-using Microsoft.AspNetCore.Hosting;
-using Microsoft.Extensions.Configuration;
-using Microsoft.Extensions.DependencyInjection;
-using Microsoft.Extensions.Hosting;
using Microsoft.OpenApi.Models;
namespace Tickets.Api;
diff --git a/Sample/Tickets/Tickets.Api/Tickets.Api.csproj b/Sample/Tickets/Tickets.Api/Tickets.Api.csproj
index ad83d80f6..d17bc89be 100644
--- a/Sample/Tickets/Tickets.Api/Tickets.Api.csproj
+++ b/Sample/Tickets/Tickets.Api/Tickets.Api.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Sample/Tickets/Tickets.Tests/Builders/ReservationBuilder.cs b/Sample/Tickets/Tickets.Tests/Builders/ReservationBuilder.cs
index f3ab0d6c1..cf6289277 100644
--- a/Sample/Tickets/Tickets.Tests/Builders/ReservationBuilder.cs
+++ b/Sample/Tickets/Tickets.Tests/Builders/ReservationBuilder.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Aggregates;
using Tickets.Reservations;
using Tickets.Tests.Stubs.Reservations;
diff --git a/Sample/Tickets/Tickets.Tests/Extensions/AggregateExtensions.cs b/Sample/Tickets/Tickets.Tests/Extensions/AggregateExtensions.cs
index 0e572b311..8edd09cf3 100644
--- a/Sample/Tickets/Tickets.Tests/Extensions/AggregateExtensions.cs
+++ b/Sample/Tickets/Tickets.Tests/Extensions/AggregateExtensions.cs
@@ -1,4 +1,3 @@
-using System.Linq;
using Core.Aggregates;
using Core.Events;
diff --git a/Sample/Tickets/Tickets.Tests/Extensions/Reservations/ReservationExtensions.cs b/Sample/Tickets/Tickets.Tests/Extensions/Reservations/ReservationExtensions.cs
index 74cf7af58..6eff5d37e 100644
--- a/Sample/Tickets/Tickets.Tests/Extensions/Reservations/ReservationExtensions.cs
+++ b/Sample/Tickets/Tickets.Tests/Extensions/Reservations/ReservationExtensions.cs
@@ -1,4 +1,3 @@
-using System;
using FluentAssertions;
using Tickets.Reservations;
using Tickets.Reservations.CreatingTentativeReservation;
diff --git a/Sample/Tickets/Tickets.Tests/Reservations/ChangingReservationSeat/ChangeSeatTests.cs b/Sample/Tickets/Tickets.Tests/Reservations/ChangingReservationSeat/ChangeSeatTests.cs
index 4d0914839..8ed8ed406 100644
--- a/Sample/Tickets/Tickets.Tests/Reservations/ChangingReservationSeat/ChangeSeatTests.cs
+++ b/Sample/Tickets/Tickets.Tests/Reservations/ChangingReservationSeat/ChangeSeatTests.cs
@@ -1,4 +1,3 @@
-using System;
using FluentAssertions;
using Tickets.Reservations.ChangingReservationSeat;
using Tickets.Tests.Builders;
diff --git a/Sample/Tickets/Tickets.Tests/Reservations/CreatingTentativeReservation/CreateTentativeReservationCommandHandlerTests.cs b/Sample/Tickets/Tickets.Tests/Reservations/CreatingTentativeReservation/CreateTentativeReservationCommandHandlerTests.cs
index 68b59b6eb..5fc6e4bea 100644
--- a/Sample/Tickets/Tickets.Tests/Reservations/CreatingTentativeReservation/CreateTentativeReservationCommandHandlerTests.cs
+++ b/Sample/Tickets/Tickets.Tests/Reservations/CreatingTentativeReservation/CreateTentativeReservationCommandHandlerTests.cs
@@ -1,7 +1,3 @@
-using System;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
using FluentAssertions;
using Tickets.Reservations;
using Tickets.Reservations.CreatingTentativeReservation;
diff --git a/Sample/Tickets/Tickets.Tests/Reservations/CreatingTentativeReservation/CreateTentativeReservationTests.cs b/Sample/Tickets/Tickets.Tests/Reservations/CreatingTentativeReservation/CreateTentativeReservationTests.cs
index 2b796e979..04042423c 100644
--- a/Sample/Tickets/Tickets.Tests/Reservations/CreatingTentativeReservation/CreateTentativeReservationTests.cs
+++ b/Sample/Tickets/Tickets.Tests/Reservations/CreatingTentativeReservation/CreateTentativeReservationTests.cs
@@ -1,4 +1,3 @@
-using System;
using FluentAssertions;
using Tickets.Reservations;
using Tickets.Tests.Extensions.Reservations;
diff --git a/Sample/Tickets/Tickets.Tests/Stubs/Ids/FakeIdGenerator.cs b/Sample/Tickets/Tickets.Tests/Stubs/Ids/FakeIdGenerator.cs
index e95145879..9972c0f94 100644
--- a/Sample/Tickets/Tickets.Tests/Stubs/Ids/FakeIdGenerator.cs
+++ b/Sample/Tickets/Tickets.Tests/Stubs/Ids/FakeIdGenerator.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Ids;
namespace Tickets.Tests.Stubs.Ids;
diff --git a/Sample/Tickets/Tickets.Tests/Stubs/Reservations/FakeReservationNumberGenerator.cs b/Sample/Tickets/Tickets.Tests/Stubs/Reservations/FakeReservationNumberGenerator.cs
index 68f2ea199..ea34fb76c 100644
--- a/Sample/Tickets/Tickets.Tests/Stubs/Reservations/FakeReservationNumberGenerator.cs
+++ b/Sample/Tickets/Tickets.Tests/Stubs/Reservations/FakeReservationNumberGenerator.cs
@@ -1,4 +1,3 @@
-using System;
using Tickets.Reservations.NumberGeneration;
namespace Tickets.Tests.Stubs.Reservations;
diff --git a/Sample/Tickets/Tickets.Tests/Stubs/Storage/FakeRepository.cs b/Sample/Tickets/Tickets.Tests/Stubs/Storage/FakeRepository.cs
index 595242e3a..20774fec4 100644
--- a/Sample/Tickets/Tickets.Tests/Stubs/Storage/FakeRepository.cs
+++ b/Sample/Tickets/Tickets.Tests/Stubs/Storage/FakeRepository.cs
@@ -1,8 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Aggregates;
using Core.Marten.Repository;
diff --git a/Sample/Tickets/Tickets.Tests/Tickets.Tests.csproj b/Sample/Tickets/Tickets.Tests/Tickets.Tests.csproj
index f339feb29..7a65bfc26 100644
--- a/Sample/Tickets/Tickets.Tests/Tickets.Tests.csproj
+++ b/Sample/Tickets/Tickets.Tests/Tickets.Tests.csproj
@@ -2,10 +2,6 @@
net6.0
- enable
- true
- trx%3bLogFileName=$(MSBuildProjectName).trx
- $(MSBuildThisFileDirectory)/bin/TestResults/$(TargetFramework)
diff --git a/Sample/Tickets/Tickets/Concerts/Concert.cs b/Sample/Tickets/Tickets/Concerts/Concert.cs
index 235da5ca0..af110990f 100644
--- a/Sample/Tickets/Tickets/Concerts/Concert.cs
+++ b/Sample/Tickets/Tickets/Concerts/Concert.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Aggregates;
namespace Tickets.Concerts;
diff --git a/Sample/Tickets/Tickets/Maintenance/Commands/RebuildProjection.cs b/Sample/Tickets/Tickets/Maintenance/Commands/RebuildProjection.cs
index 1750b32f5..f9d6310f4 100644
--- a/Sample/Tickets/Tickets/Maintenance/Commands/RebuildProjection.cs
+++ b/Sample/Tickets/Tickets/Maintenance/Commands/RebuildProjection.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Commands;
namespace Tickets.Maintenance.Commands;
diff --git a/Sample/Tickets/Tickets/Maintenance/MaintenanceCommandHandler.cs b/Sample/Tickets/Tickets/Maintenance/MaintenanceCommandHandler.cs
index f5c3a4027..f0c859186 100644
--- a/Sample/Tickets/Tickets/Maintenance/MaintenanceCommandHandler.cs
+++ b/Sample/Tickets/Tickets/Maintenance/MaintenanceCommandHandler.cs
@@ -1,5 +1,3 @@
-using System.Threading;
-using System.Threading.Tasks;
using Core.Commands;
using Marten;
using MediatR;
diff --git a/Sample/Tickets/Tickets/Reservations/CancellingReservation/CancelReservation.cs b/Sample/Tickets/Tickets/Reservations/CancellingReservation/CancelReservation.cs
index d32d83fd5..d4191ec89 100644
--- a/Sample/Tickets/Tickets/Reservations/CancellingReservation/CancelReservation.cs
+++ b/Sample/Tickets/Tickets/Reservations/CancellingReservation/CancelReservation.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Commands;
using Core.Marten.OptimisticConcurrency;
using Core.Marten.Repository;
diff --git a/Sample/Tickets/Tickets/Reservations/CancellingReservation/ReservationCancelled.cs b/Sample/Tickets/Tickets/Reservations/CancellingReservation/ReservationCancelled.cs
index 0ed0aae75..38ca51a80 100644
--- a/Sample/Tickets/Tickets/Reservations/CancellingReservation/ReservationCancelled.cs
+++ b/Sample/Tickets/Tickets/Reservations/CancellingReservation/ReservationCancelled.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Events;
namespace Tickets.Reservations.CancellingReservation;
diff --git a/Sample/Tickets/Tickets/Reservations/ChangingReservationSeat/ChangeReservationSeat.cs b/Sample/Tickets/Tickets/Reservations/ChangingReservationSeat/ChangeReservationSeat.cs
index bc33ee338..726994853 100644
--- a/Sample/Tickets/Tickets/Reservations/ChangingReservationSeat/ChangeReservationSeat.cs
+++ b/Sample/Tickets/Tickets/Reservations/ChangingReservationSeat/ChangeReservationSeat.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Commands;
using Core.Marten.OptimisticConcurrency;
using Core.Marten.Repository;
diff --git a/Sample/Tickets/Tickets/Reservations/ChangingReservationSeat/ReservationSeatChanged.cs b/Sample/Tickets/Tickets/Reservations/ChangingReservationSeat/ReservationSeatChanged.cs
index c0524b421..8d877a2e9 100644
--- a/Sample/Tickets/Tickets/Reservations/ChangingReservationSeat/ReservationSeatChanged.cs
+++ b/Sample/Tickets/Tickets/Reservations/ChangingReservationSeat/ReservationSeatChanged.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Events;
namespace Tickets.Reservations.ChangingReservationSeat;
diff --git a/Sample/Tickets/Tickets/Reservations/ConfirmingReservation/ConfirmReservation.cs b/Sample/Tickets/Tickets/Reservations/ConfirmingReservation/ConfirmReservation.cs
index c09044249..d76fbc2b9 100644
--- a/Sample/Tickets/Tickets/Reservations/ConfirmingReservation/ConfirmReservation.cs
+++ b/Sample/Tickets/Tickets/Reservations/ConfirmingReservation/ConfirmReservation.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Commands;
using Core.Marten.OptimisticConcurrency;
using Core.Marten.Repository;
diff --git a/Sample/Tickets/Tickets/Reservations/ConfirmingReservation/ReservationConfirmed.cs b/Sample/Tickets/Tickets/Reservations/ConfirmingReservation/ReservationConfirmed.cs
index 17d55aec6..3bd5b0ec8 100644
--- a/Sample/Tickets/Tickets/Reservations/ConfirmingReservation/ReservationConfirmed.cs
+++ b/Sample/Tickets/Tickets/Reservations/ConfirmingReservation/ReservationConfirmed.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Events;
namespace Tickets.Reservations.ConfirmingReservation;
diff --git a/Sample/Tickets/Tickets/Reservations/CreatingTentativeReservation/CreateTentativeReservation.cs b/Sample/Tickets/Tickets/Reservations/CreatingTentativeReservation/CreateTentativeReservation.cs
index 120b4a5bf..c65d094e1 100644
--- a/Sample/Tickets/Tickets/Reservations/CreatingTentativeReservation/CreateTentativeReservation.cs
+++ b/Sample/Tickets/Tickets/Reservations/CreatingTentativeReservation/CreateTentativeReservation.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Commands;
using Core.Marten.Repository;
using MediatR;
diff --git a/Sample/Tickets/Tickets/Reservations/CreatingTentativeReservation/TentativeReservationCreated.cs b/Sample/Tickets/Tickets/Reservations/CreatingTentativeReservation/TentativeReservationCreated.cs
index 2d999e4b7..b24d16127 100644
--- a/Sample/Tickets/Tickets/Reservations/CreatingTentativeReservation/TentativeReservationCreated.cs
+++ b/Sample/Tickets/Tickets/Reservations/CreatingTentativeReservation/TentativeReservationCreated.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Events;
namespace Tickets.Reservations.CreatingTentativeReservation;
diff --git a/Sample/Tickets/Tickets/Reservations/GettingReservationAtVersion/GetReservationAtVersion.cs b/Sample/Tickets/Tickets/Reservations/GettingReservationAtVersion/GetReservationAtVersion.cs
index 50ee8f598..b9420a815 100644
--- a/Sample/Tickets/Tickets/Reservations/GettingReservationAtVersion/GetReservationAtVersion.cs
+++ b/Sample/Tickets/Tickets/Reservations/GettingReservationAtVersion/GetReservationAtVersion.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Exceptions;
using Core.Queries;
using Marten;
diff --git a/Sample/Tickets/Tickets/Reservations/GettingReservationById/GetReservationById.cs b/Sample/Tickets/Tickets/Reservations/GettingReservationById/GetReservationById.cs
index c23ce1350..c220fa04f 100644
--- a/Sample/Tickets/Tickets/Reservations/GettingReservationById/GetReservationById.cs
+++ b/Sample/Tickets/Tickets/Reservations/GettingReservationById/GetReservationById.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Exceptions;
using Core.Queries;
using Marten;
diff --git a/Sample/Tickets/Tickets/Reservations/GettingReservationById/ReservationDetails.cs b/Sample/Tickets/Tickets/Reservations/GettingReservationById/ReservationDetails.cs
index be33faaba..8534308d4 100644
--- a/Sample/Tickets/Tickets/Reservations/GettingReservationById/ReservationDetails.cs
+++ b/Sample/Tickets/Tickets/Reservations/GettingReservationById/ReservationDetails.cs
@@ -1,4 +1,3 @@
-using System;
using Marten.Events.Aggregation;
using Tickets.Reservations.CancellingReservation;
using Tickets.Reservations.ChangingReservationSeat;
diff --git a/Sample/Tickets/Tickets/Reservations/GettingReservationHistory/GetReservationHistory.cs b/Sample/Tickets/Tickets/Reservations/GettingReservationHistory/GetReservationHistory.cs
index b4773e1ea..0457b44ad 100644
--- a/Sample/Tickets/Tickets/Reservations/GettingReservationHistory/GetReservationHistory.cs
+++ b/Sample/Tickets/Tickets/Reservations/GettingReservationHistory/GetReservationHistory.cs
@@ -1,7 +1,3 @@
-using System;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Queries;
using Marten;
using Marten.Pagination;
diff --git a/Sample/Tickets/Tickets/Reservations/GettingReservationHistory/ReservationHistoryTransformation.cs b/Sample/Tickets/Tickets/Reservations/GettingReservationHistory/ReservationHistoryTransformation.cs
index 2002e4ec1..615b4444f 100644
--- a/Sample/Tickets/Tickets/Reservations/GettingReservationHistory/ReservationHistoryTransformation.cs
+++ b/Sample/Tickets/Tickets/Reservations/GettingReservationHistory/ReservationHistoryTransformation.cs
@@ -1,4 +1,3 @@
-using System;
using Marten.Events;
using Marten.Events.Projections;
using Tickets.Reservations.CancellingReservation;
diff --git a/Sample/Tickets/Tickets/Reservations/GettingReservations/GetReservations.cs b/Sample/Tickets/Tickets/Reservations/GettingReservations/GetReservations.cs
index bbe432e39..ba16d49d9 100644
--- a/Sample/Tickets/Tickets/Reservations/GettingReservations/GetReservations.cs
+++ b/Sample/Tickets/Tickets/Reservations/GettingReservations/GetReservations.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
using Core.Queries;
using Marten;
using Marten.Pagination;
diff --git a/Sample/Tickets/Tickets/Reservations/GettingReservations/ReservationShortInfo.cs b/Sample/Tickets/Tickets/Reservations/GettingReservations/ReservationShortInfo.cs
index 60fb10dc0..75dca5b9a 100644
--- a/Sample/Tickets/Tickets/Reservations/GettingReservations/ReservationShortInfo.cs
+++ b/Sample/Tickets/Tickets/Reservations/GettingReservations/ReservationShortInfo.cs
@@ -1,4 +1,3 @@
-using System;
using Marten.Events.Aggregation;
using Tickets.Reservations.CancellingReservation;
using Tickets.Reservations.ConfirmingReservation;
diff --git a/Sample/Tickets/Tickets/Reservations/NumberGeneration/ReservationNumberGenerator.cs b/Sample/Tickets/Tickets/Reservations/NumberGeneration/ReservationNumberGenerator.cs
index b35f461b0..d866f3726 100644
--- a/Sample/Tickets/Tickets/Reservations/NumberGeneration/ReservationNumberGenerator.cs
+++ b/Sample/Tickets/Tickets/Reservations/NumberGeneration/ReservationNumberGenerator.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace Tickets.Reservations.NumberGeneration;
public interface IReservationNumberGenerator
diff --git a/Sample/Tickets/Tickets/Reservations/Reservation.cs b/Sample/Tickets/Tickets/Reservations/Reservation.cs
index 82ade576b..02d509234 100644
--- a/Sample/Tickets/Tickets/Reservations/Reservation.cs
+++ b/Sample/Tickets/Tickets/Reservations/Reservation.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Aggregates;
using Tickets.Reservations.CancellingReservation;
using Tickets.Reservations.ChangingReservationSeat;
diff --git a/Sample/Tickets/Tickets/Seats/Seat.cs b/Sample/Tickets/Tickets/Seats/Seat.cs
index f263e8e26..59064ada6 100644
--- a/Sample/Tickets/Tickets/Seats/Seat.cs
+++ b/Sample/Tickets/Tickets/Seats/Seat.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Aggregates;
namespace Tickets.Seats;
diff --git a/Sample/Tickets/Tickets/Tickets.csproj b/Sample/Tickets/Tickets/Tickets.csproj
index a10a0bf6b..c368360e1 100644
--- a/Sample/Tickets/Tickets/Tickets.csproj
+++ b/Sample/Tickets/Tickets/Tickets.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Sample/Tickets/Tickets/Tickets/Ticket.cs b/Sample/Tickets/Tickets/Tickets/Ticket.cs
index 802ec8bcd..1cbb3731e 100644
--- a/Sample/Tickets/Tickets/Tickets/Ticket.cs
+++ b/Sample/Tickets/Tickets/Tickets/Ticket.cs
@@ -1,4 +1,3 @@
-using System;
using Core.Aggregates;
namespace Tickets.Tickets;
diff --git a/Sample/Warehouse/Warehouse.Api.Tests/Products/GettingProductDetails/GetProductDetailsTests.cs b/Sample/Warehouse/Warehouse.Api.Tests/Products/GettingProductDetails/GetProductDetailsTests.cs
index e63dd6845..79f266a02 100644
--- a/Sample/Warehouse/Warehouse.Api.Tests/Products/GettingProductDetails/GetProductDetailsTests.cs
+++ b/Sample/Warehouse/Warehouse.Api.Tests/Products/GettingProductDetails/GetProductDetailsTests.cs
@@ -1,6 +1,4 @@
-using System;
-using System.Net;
-using System.Threading.Tasks;
+using System.Net;
using Core.Api.Testing;
using FluentAssertions;
using Microsoft.AspNetCore.Hosting;
diff --git a/Sample/Warehouse/Warehouse.Api.Tests/Products/GettingProducts/GetProductsTests.cs b/Sample/Warehouse/Warehouse.Api.Tests/Products/GettingProducts/GetProductsTests.cs
index 73020c8aa..4905480b8 100644
--- a/Sample/Warehouse/Warehouse.Api.Tests/Products/GettingProducts/GetProductsTests.cs
+++ b/Sample/Warehouse/Warehouse.Api.Tests/Products/GettingProducts/GetProductsTests.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Net;
-using System.Threading.Tasks;
+using System.Net;
using Core.Api.Testing;
using FluentAssertions;
using Microsoft.AspNetCore.Hosting;
diff --git a/Sample/Warehouse/Warehouse.Api.Tests/Products/RegisteringProduct/RegisterProductTests.cs b/Sample/Warehouse/Warehouse.Api.Tests/Products/RegisteringProduct/RegisterProductTests.cs
index 1c3e7152b..e587bff2d 100644
--- a/Sample/Warehouse/Warehouse.Api.Tests/Products/RegisteringProduct/RegisterProductTests.cs
+++ b/Sample/Warehouse/Warehouse.Api.Tests/Products/RegisteringProduct/RegisterProductTests.cs
@@ -1,6 +1,4 @@
-using System;
-using System.Net;
-using System.Threading.Tasks;
+using System.Net;
using Core.Api.Testing;
using FluentAssertions;
using Microsoft.AspNetCore.Hosting;
diff --git a/Sample/Warehouse/Warehouse.Api.Tests/Warehouse.Api.Tests.csproj b/Sample/Warehouse/Warehouse.Api.Tests/Warehouse.Api.Tests.csproj
index ce71893de..9b57ad987 100644
--- a/Sample/Warehouse/Warehouse.Api.Tests/Warehouse.Api.Tests.csproj
+++ b/Sample/Warehouse/Warehouse.Api.Tests/Warehouse.Api.Tests.csproj
@@ -2,10 +2,6 @@
net6.0
- enable
- true
- trx%3bLogFileName=$(MSBuildProjectName).trx
- $(MSBuildThisFileDirectory)/bin/TestResults/$(TargetFramework)
diff --git a/Sample/Warehouse/Warehouse.Api/Program.cs b/Sample/Warehouse/Warehouse.Api/Program.cs
index f8798a87b..61bcc3066 100644
--- a/Sample/Warehouse/Warehouse.Api/Program.cs
+++ b/Sample/Warehouse/Warehouse.Api/Program.cs
@@ -1,8 +1,4 @@
using Core.WebApi.Middlewares.ExceptionHandling;
-using Microsoft.AspNetCore.Builder;
-using Microsoft.AspNetCore.Hosting;
-using Microsoft.Extensions.DependencyInjection;
-using Microsoft.Extensions.Hosting;
using Warehouse;
var builder = Host.CreateDefaultBuilder(args)
diff --git a/Sample/Warehouse/Warehouse.Api/Warehouse.Api.csproj b/Sample/Warehouse/Warehouse.Api/Warehouse.Api.csproj
index aee796207..472b344f5 100644
--- a/Sample/Warehouse/Warehouse.Api/Warehouse.Api.csproj
+++ b/Sample/Warehouse/Warehouse.Api/Warehouse.Api.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Sample/Warehouse/Warehouse/Configuration.cs b/Sample/Warehouse/Warehouse/Configuration.cs
index 5a58c59a5..a695c4efe 100644
--- a/Sample/Warehouse/Warehouse/Configuration.cs
+++ b/Sample/Warehouse/Warehouse/Configuration.cs
@@ -1,5 +1,4 @@
-using System;
-using Microsoft.AspNetCore.Builder;
+using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Routing;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
diff --git a/Sample/Warehouse/Warehouse/Core/Commands/ICommandHandler.cs b/Sample/Warehouse/Warehouse/Core/Commands/ICommandHandler.cs
index ed303e9af..2556b113d 100644
--- a/Sample/Warehouse/Warehouse/Core/Commands/ICommandHandler.cs
+++ b/Sample/Warehouse/Warehouse/Core/Commands/ICommandHandler.cs
@@ -1,7 +1,4 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
-using Microsoft.AspNetCore.Http;
+using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
namespace Warehouse.Core.Commands;
diff --git a/Sample/Warehouse/Warehouse/Core/Entities/EntitiesExtensions.cs b/Sample/Warehouse/Warehouse/Core/Entities/EntitiesExtensions.cs
index af097dc27..8350a1831 100644
--- a/Sample/Warehouse/Warehouse/Core/Entities/EntitiesExtensions.cs
+++ b/Sample/Warehouse/Warehouse/Core/Entities/EntitiesExtensions.cs
@@ -1,6 +1,4 @@
-using System.Threading;
-using System.Threading.Tasks;
-using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore;
namespace Warehouse.Core.Entities;
diff --git a/Sample/Warehouse/Warehouse/Core/Extensions/HttpExtensions.cs b/Sample/Warehouse/Warehouse/Core/Extensions/HttpExtensions.cs
index e53e776f1..7d777da5e 100644
--- a/Sample/Warehouse/Warehouse/Core/Extensions/HttpExtensions.cs
+++ b/Sample/Warehouse/Warehouse/Core/Extensions/HttpExtensions.cs
@@ -1,7 +1,5 @@
-using System;
-using System.ComponentModel;
+using System.ComponentModel;
using System.Net;
-using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Primitives;
using Microsoft.Net.Http.Headers;
diff --git a/Sample/Warehouse/Warehouse/Core/Primitives/MappingExtensions.cs b/Sample/Warehouse/Warehouse/Core/Primitives/MappingExtensions.cs
index 219d5d69a..8dd7d10c1 100644
--- a/Sample/Warehouse/Warehouse/Core/Primitives/MappingExtensions.cs
+++ b/Sample/Warehouse/Warehouse/Core/Primitives/MappingExtensions.cs
@@ -1,6 +1,4 @@
-using System;
-
-namespace Warehouse.Core.Primitives;
+namespace Warehouse.Core.Primitives;
internal static class MappingExtensions
{
diff --git a/Sample/Warehouse/Warehouse/Core/Queries/IQueryHandler.cs b/Sample/Warehouse/Warehouse/Core/Queries/IQueryHandler.cs
index 66175bedb..bf45047f9 100644
--- a/Sample/Warehouse/Warehouse/Core/Queries/IQueryHandler.cs
+++ b/Sample/Warehouse/Warehouse/Core/Queries/IQueryHandler.cs
@@ -1,7 +1,4 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
-using Microsoft.AspNetCore.Http;
+using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
namespace Warehouse.Core.Queries;
diff --git a/Sample/Warehouse/Warehouse/Products/Configuration.cs b/Sample/Warehouse/Warehouse/Products/Configuration.cs
index addb3ad09..83c6c5e4b 100644
--- a/Sample/Warehouse/Warehouse/Products/Configuration.cs
+++ b/Sample/Warehouse/Warehouse/Products/Configuration.cs
@@ -1,5 +1,4 @@
-using System.Collections.Generic;
-using Microsoft.AspNetCore.Routing;
+using Microsoft.AspNetCore.Routing;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using Warehouse.Core.Commands;
diff --git a/Sample/Warehouse/Warehouse/Products/GettingProductDetails/GetProductDetails.cs b/Sample/Warehouse/Warehouse/Products/GettingProductDetails/GetProductDetails.cs
index 0a40197cf..b8559fee4 100644
--- a/Sample/Warehouse/Warehouse/Products/GettingProductDetails/GetProductDetails.cs
+++ b/Sample/Warehouse/Warehouse/Products/GettingProductDetails/GetProductDetails.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
-using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore;
using Warehouse.Core.Primitives;
using Warehouse.Core.Queries;
diff --git a/Sample/Warehouse/Warehouse/Products/GettingProductDetails/Route.cs b/Sample/Warehouse/Warehouse/Products/GettingProductDetails/Route.cs
index 878d7d92d..6a0e87efa 100644
--- a/Sample/Warehouse/Warehouse/Products/GettingProductDetails/Route.cs
+++ b/Sample/Warehouse/Warehouse/Products/GettingProductDetails/Route.cs
@@ -1,5 +1,4 @@
-using System;
-using Microsoft.AspNetCore.Builder;
+using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Routing;
using Warehouse.Core.Extensions;
using Warehouse.Core.Queries;
diff --git a/Sample/Warehouse/Warehouse/Products/GettingProducts/GetProducts.cs b/Sample/Warehouse/Warehouse/Products/GettingProducts/GetProducts.cs
index a479f18d6..6e459477f 100644
--- a/Sample/Warehouse/Warehouse/Products/GettingProducts/GetProducts.cs
+++ b/Sample/Warehouse/Warehouse/Products/GettingProducts/GetProducts.cs
@@ -1,9 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
-using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore;
using Warehouse.Core.Queries;
namespace Warehouse.Products.GettingProducts;
diff --git a/Sample/Warehouse/Warehouse/Products/GettingProducts/Route.cs b/Sample/Warehouse/Warehouse/Products/GettingProducts/Route.cs
index 94f9a549b..ad191f08a 100644
--- a/Sample/Warehouse/Warehouse/Products/GettingProducts/Route.cs
+++ b/Sample/Warehouse/Warehouse/Products/GettingProducts/Route.cs
@@ -1,5 +1,4 @@
-using System.Collections.Generic;
-using Microsoft.AspNetCore.Builder;
+using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Routing;
using Warehouse.Core.Extensions;
using Warehouse.Core.Queries;
diff --git a/Sample/Warehouse/Warehouse/Products/Primitives/SKU.cs b/Sample/Warehouse/Warehouse/Products/Primitives/SKU.cs
index 3bb975ac5..0106c2883 100644
--- a/Sample/Warehouse/Warehouse/Products/Primitives/SKU.cs
+++ b/Sample/Warehouse/Warehouse/Products/Primitives/SKU.cs
@@ -1,5 +1,4 @@
-using System;
-using System.Text.Json.Serialization;
+using System.Text.Json.Serialization;
using System.Text.RegularExpressions;
namespace Warehouse.Products.Primitives;
diff --git a/Sample/Warehouse/Warehouse/Products/Product.cs b/Sample/Warehouse/Warehouse/Products/Product.cs
index 28956158d..bcb82c2d8 100644
--- a/Sample/Warehouse/Warehouse/Products/Product.cs
+++ b/Sample/Warehouse/Warehouse/Products/Product.cs
@@ -1,5 +1,4 @@
-using System;
-using Warehouse.Products.Primitives;
+using Warehouse.Products.Primitives;
namespace Warehouse.Products;
diff --git a/Sample/Warehouse/Warehouse/Products/ProductsRepository.cs b/Sample/Warehouse/Warehouse/Products/ProductsRepository.cs
index 3683333de..2bc50de4c 100644
--- a/Sample/Warehouse/Warehouse/Products/ProductsRepository.cs
+++ b/Sample/Warehouse/Warehouse/Products/ProductsRepository.cs
@@ -1,6 +1,4 @@
-using System.Threading;
-using System.Threading.Tasks;
-using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore;
using Warehouse.Products.Primitives;
using Warehouse.Storage;
diff --git a/Sample/Warehouse/Warehouse/Products/RegisteringProduct/RegisterProduct.cs b/Sample/Warehouse/Warehouse/Products/RegisteringProduct/RegisterProduct.cs
index f319e12af..694c0a58f 100644
--- a/Sample/Warehouse/Warehouse/Products/RegisteringProduct/RegisterProduct.cs
+++ b/Sample/Warehouse/Warehouse/Products/RegisteringProduct/RegisterProduct.cs
@@ -1,7 +1,4 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
-using Warehouse.Core.Commands;
+using Warehouse.Core.Commands;
using Warehouse.Products.Primitives;
namespace Warehouse.Products.RegisteringProduct;
diff --git a/Sample/Warehouse/Warehouse/Products/RegisteringProduct/Route.cs b/Sample/Warehouse/Warehouse/Products/RegisteringProduct/Route.cs
index 41ee1a3c9..747b534f6 100644
--- a/Sample/Warehouse/Warehouse/Products/RegisteringProduct/Route.cs
+++ b/Sample/Warehouse/Warehouse/Products/RegisteringProduct/Route.cs
@@ -1,5 +1,4 @@
-using System;
-using Microsoft.AspNetCore.Builder;
+using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Routing;
using Warehouse.Core.Commands;
using Warehouse.Core.Extensions;
diff --git a/Sample/Warehouse/Warehouse/Storage/WarehouseDBContext.cs b/Sample/Warehouse/Warehouse/Storage/WarehouseDBContext.cs
index f768a5ed6..dc956095e 100644
--- a/Sample/Warehouse/Warehouse/Storage/WarehouseDBContext.cs
+++ b/Sample/Warehouse/Warehouse/Storage/WarehouseDBContext.cs
@@ -1,5 +1,4 @@
-using System;
-using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design;
using Microsoft.Extensions.Configuration;
using Warehouse.Products;
diff --git a/Sample/Warehouse/Warehouse/Warehouse.csproj b/Sample/Warehouse/Warehouse/Warehouse.csproj
index 41487697a..1bd080fc3 100644
--- a/Sample/Warehouse/Warehouse/Warehouse.csproj
+++ b/Sample/Warehouse/Warehouse/Warehouse.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Workshops/BuildYourOwnEventStore/01-CreateStreamsTable/01-CreateStreamsTable.csproj b/Workshops/BuildYourOwnEventStore/01-CreateStreamsTable/01-CreateStreamsTable.csproj
index 0e3f2b7b0..11050d45e 100644
--- a/Workshops/BuildYourOwnEventStore/01-CreateStreamsTable/01-CreateStreamsTable.csproj
+++ b/Workshops/BuildYourOwnEventStore/01-CreateStreamsTable/01-CreateStreamsTable.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Workshops/BuildYourOwnEventStore/01-CreateStreamsTable/EventStore.cs b/Workshops/BuildYourOwnEventStore/01-CreateStreamsTable/EventStore.cs
index 27d8090c2..6e663ac59 100644
--- a/Workshops/BuildYourOwnEventStore/01-CreateStreamsTable/EventStore.cs
+++ b/Workshops/BuildYourOwnEventStore/01-CreateStreamsTable/EventStore.cs
@@ -1,4 +1,3 @@
-using System;
using Npgsql;
namespace EventStoreBasics;
diff --git a/Workshops/BuildYourOwnEventStore/01-CreateStreamsTable/Exercise01CreateStreamsTable.cs b/Workshops/BuildYourOwnEventStore/01-CreateStreamsTable/Exercise01CreateStreamsTable.cs
index 4a659b664..7e77b2dfa 100644
--- a/Workshops/BuildYourOwnEventStore/01-CreateStreamsTable/Exercise01CreateStreamsTable.cs
+++ b/Workshops/BuildYourOwnEventStore/01-CreateStreamsTable/Exercise01CreateStreamsTable.cs
@@ -1,4 +1,3 @@
-using System;
using FluentAssertions;
using Npgsql;
using Tools.Tools;
diff --git a/Workshops/BuildYourOwnEventStore/02-CreateEventsTable/02-CreateEventsTable.csproj b/Workshops/BuildYourOwnEventStore/02-CreateEventsTable/02-CreateEventsTable.csproj
index 0e3f2b7b0..11050d45e 100644
--- a/Workshops/BuildYourOwnEventStore/02-CreateEventsTable/02-CreateEventsTable.csproj
+++ b/Workshops/BuildYourOwnEventStore/02-CreateEventsTable/02-CreateEventsTable.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Workshops/BuildYourOwnEventStore/02-CreateEventsTable/EventStore.cs b/Workshops/BuildYourOwnEventStore/02-CreateEventsTable/EventStore.cs
index ab0d1a23a..7f543ef18 100644
--- a/Workshops/BuildYourOwnEventStore/02-CreateEventsTable/EventStore.cs
+++ b/Workshops/BuildYourOwnEventStore/02-CreateEventsTable/EventStore.cs
@@ -1,4 +1,3 @@
-using System;
using Dapper;
using Npgsql;
diff --git a/Workshops/BuildYourOwnEventStore/02-CreateEventsTable/Exercise02CreateEventsTable.cs b/Workshops/BuildYourOwnEventStore/02-CreateEventsTable/Exercise02CreateEventsTable.cs
index 0495a4625..7cd9831fb 100644
--- a/Workshops/BuildYourOwnEventStore/02-CreateEventsTable/Exercise02CreateEventsTable.cs
+++ b/Workshops/BuildYourOwnEventStore/02-CreateEventsTable/Exercise02CreateEventsTable.cs
@@ -1,4 +1,3 @@
-using System;
using FluentAssertions;
using Npgsql;
using Tools.Tools;
diff --git a/Workshops/BuildYourOwnEventStore/03-CreateAppendEventFunction/03-CreateAppendEventFunction.csproj b/Workshops/BuildYourOwnEventStore/03-CreateAppendEventFunction/03-CreateAppendEventFunction.csproj
index 0e3f2b7b0..11050d45e 100644
--- a/Workshops/BuildYourOwnEventStore/03-CreateAppendEventFunction/03-CreateAppendEventFunction.csproj
+++ b/Workshops/BuildYourOwnEventStore/03-CreateAppendEventFunction/03-CreateAppendEventFunction.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Workshops/BuildYourOwnEventStore/03-CreateAppendEventFunction/EventStore.cs b/Workshops/BuildYourOwnEventStore/03-CreateAppendEventFunction/EventStore.cs
index d48a743c1..e0fe3dff7 100644
--- a/Workshops/BuildYourOwnEventStore/03-CreateAppendEventFunction/EventStore.cs
+++ b/Workshops/BuildYourOwnEventStore/03-CreateAppendEventFunction/EventStore.cs
@@ -1,4 +1,3 @@
-using System;
using System.Data;
using Dapper;
using Npgsql;
diff --git a/Workshops/BuildYourOwnEventStore/03-CreateAppendEventFunction/Exercise03CreateAppendEventFunction.cs b/Workshops/BuildYourOwnEventStore/03-CreateAppendEventFunction/Exercise03CreateAppendEventFunction.cs
index 3e3c60429..b8d0441d2 100644
--- a/Workshops/BuildYourOwnEventStore/03-CreateAppendEventFunction/Exercise03CreateAppendEventFunction.cs
+++ b/Workshops/BuildYourOwnEventStore/03-CreateAppendEventFunction/Exercise03CreateAppendEventFunction.cs
@@ -1,4 +1,3 @@
-using System;
using Dapper;
using FluentAssertions;
using Npgsql;
diff --git a/Workshops/BuildYourOwnEventStore/03-CreateAppendEventFunction/IEventStore.cs b/Workshops/BuildYourOwnEventStore/03-CreateAppendEventFunction/IEventStore.cs
index 02c5f001a..ed93b891a 100644
--- a/Workshops/BuildYourOwnEventStore/03-CreateAppendEventFunction/IEventStore.cs
+++ b/Workshops/BuildYourOwnEventStore/03-CreateAppendEventFunction/IEventStore.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace EventStoreBasics;
public interface IEventStore
diff --git a/Workshops/BuildYourOwnEventStore/03-OptimisticConcurrency/03-OptimisticConcurrency.csproj b/Workshops/BuildYourOwnEventStore/03-OptimisticConcurrency/03-OptimisticConcurrency.csproj
index 0e3f2b7b0..11050d45e 100644
--- a/Workshops/BuildYourOwnEventStore/03-OptimisticConcurrency/03-OptimisticConcurrency.csproj
+++ b/Workshops/BuildYourOwnEventStore/03-OptimisticConcurrency/03-OptimisticConcurrency.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Workshops/BuildYourOwnEventStore/03-OptimisticConcurrency/EventStore.cs b/Workshops/BuildYourOwnEventStore/03-OptimisticConcurrency/EventStore.cs
index 5ce61ad21..224a2f6fc 100644
--- a/Workshops/BuildYourOwnEventStore/03-OptimisticConcurrency/EventStore.cs
+++ b/Workshops/BuildYourOwnEventStore/03-OptimisticConcurrency/EventStore.cs
@@ -1,4 +1,3 @@
-using System;
using System.Data;
using Dapper;
using Npgsql;
diff --git a/Workshops/BuildYourOwnEventStore/03-OptimisticConcurrency/Exercise03OptimisticConcurrency.cs b/Workshops/BuildYourOwnEventStore/03-OptimisticConcurrency/Exercise03OptimisticConcurrency.cs
index 8ca0358e6..6a20d0d9a 100644
--- a/Workshops/BuildYourOwnEventStore/03-OptimisticConcurrency/Exercise03OptimisticConcurrency.cs
+++ b/Workshops/BuildYourOwnEventStore/03-OptimisticConcurrency/Exercise03OptimisticConcurrency.cs
@@ -1,4 +1,3 @@
-using System;
using Dapper;
using FluentAssertions;
using Npgsql;
diff --git a/Workshops/BuildYourOwnEventStore/03-OptimisticConcurrency/IEventStore.cs b/Workshops/BuildYourOwnEventStore/03-OptimisticConcurrency/IEventStore.cs
index 02c5f001a..ed93b891a 100644
--- a/Workshops/BuildYourOwnEventStore/03-OptimisticConcurrency/IEventStore.cs
+++ b/Workshops/BuildYourOwnEventStore/03-OptimisticConcurrency/IEventStore.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace EventStoreBasics;
public interface IEventStore
diff --git a/Workshops/BuildYourOwnEventStore/04-EventStoreMethods/04-EventStoreMethods.csproj b/Workshops/BuildYourOwnEventStore/04-EventStoreMethods/04-EventStoreMethods.csproj
index 0e3f2b7b0..11050d45e 100644
--- a/Workshops/BuildYourOwnEventStore/04-EventStoreMethods/04-EventStoreMethods.csproj
+++ b/Workshops/BuildYourOwnEventStore/04-EventStoreMethods/04-EventStoreMethods.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Workshops/BuildYourOwnEventStore/04-EventStoreMethods/EventStore.cs b/Workshops/BuildYourOwnEventStore/04-EventStoreMethods/EventStore.cs
index 9ff49e5b1..c80f4301d 100644
--- a/Workshops/BuildYourOwnEventStore/04-EventStoreMethods/EventStore.cs
+++ b/Workshops/BuildYourOwnEventStore/04-EventStoreMethods/EventStore.cs
@@ -1,4 +1,3 @@
-using System;
using System.Collections;
using System.Data;
using Dapper;
diff --git a/Workshops/BuildYourOwnEventStore/04-EventStoreMethods/Exercise04EventStoreMethods.cs b/Workshops/BuildYourOwnEventStore/04-EventStoreMethods/Exercise04EventStoreMethods.cs
index dd17dfd3b..31fa47d60 100644
--- a/Workshops/BuildYourOwnEventStore/04-EventStoreMethods/Exercise04EventStoreMethods.cs
+++ b/Workshops/BuildYourOwnEventStore/04-EventStoreMethods/Exercise04EventStoreMethods.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Linq;
using FluentAssertions;
using Npgsql;
using Tools.Tools;
diff --git a/Workshops/BuildYourOwnEventStore/04-EventStoreMethods/IEventStore.cs b/Workshops/BuildYourOwnEventStore/04-EventStoreMethods/IEventStore.cs
index fa54163fb..582a5a0d4 100644
--- a/Workshops/BuildYourOwnEventStore/04-EventStoreMethods/IEventStore.cs
+++ b/Workshops/BuildYourOwnEventStore/04-EventStoreMethods/IEventStore.cs
@@ -1,4 +1,3 @@
-using System;
using System.Collections;
namespace EventStoreBasics;
diff --git a/Workshops/BuildYourOwnEventStore/04-EventStoreMethods/StreamState.cs b/Workshops/BuildYourOwnEventStore/04-EventStoreMethods/StreamState.cs
index deb4300f8..cf6d71783 100644
--- a/Workshops/BuildYourOwnEventStore/04-EventStoreMethods/StreamState.cs
+++ b/Workshops/BuildYourOwnEventStore/04-EventStoreMethods/StreamState.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace EventStoreBasics;
public class StreamState
diff --git a/Workshops/BuildYourOwnEventStore/05-StreamAggregation/05-StreamAggregation.csproj b/Workshops/BuildYourOwnEventStore/05-StreamAggregation/05-StreamAggregation.csproj
index 0e3f2b7b0..11050d45e 100644
--- a/Workshops/BuildYourOwnEventStore/05-StreamAggregation/05-StreamAggregation.csproj
+++ b/Workshops/BuildYourOwnEventStore/05-StreamAggregation/05-StreamAggregation.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Workshops/BuildYourOwnEventStore/05-StreamAggregation/EventStore.cs b/Workshops/BuildYourOwnEventStore/05-StreamAggregation/EventStore.cs
index 2b23edd23..cf85922a0 100644
--- a/Workshops/BuildYourOwnEventStore/05-StreamAggregation/EventStore.cs
+++ b/Workshops/BuildYourOwnEventStore/05-StreamAggregation/EventStore.cs
@@ -1,7 +1,5 @@
-using System;
using System.Collections;
using System.Data;
-using System.Linq;
using Dapper;
using Newtonsoft.Json;
using Npgsql;
diff --git a/Workshops/BuildYourOwnEventStore/05-StreamAggregation/Exercise05StreamAggregation.cs b/Workshops/BuildYourOwnEventStore/05-StreamAggregation/Exercise05StreamAggregation.cs
index 0bca71b77..116f64f67 100644
--- a/Workshops/BuildYourOwnEventStore/05-StreamAggregation/Exercise05StreamAggregation.cs
+++ b/Workshops/BuildYourOwnEventStore/05-StreamAggregation/Exercise05StreamAggregation.cs
@@ -1,4 +1,3 @@
-using System;
using FluentAssertions;
using Npgsql;
using Tools.Tools;
diff --git a/Workshops/BuildYourOwnEventStore/05-StreamAggregation/IEventStore.cs b/Workshops/BuildYourOwnEventStore/05-StreamAggregation/IEventStore.cs
index 9d54a188e..9a2e45d31 100644
--- a/Workshops/BuildYourOwnEventStore/05-StreamAggregation/IEventStore.cs
+++ b/Workshops/BuildYourOwnEventStore/05-StreamAggregation/IEventStore.cs
@@ -1,4 +1,3 @@
-using System;
using System.Collections;
namespace EventStoreBasics;
diff --git a/Workshops/BuildYourOwnEventStore/05-StreamAggregation/StreamState.cs b/Workshops/BuildYourOwnEventStore/05-StreamAggregation/StreamState.cs
index deb4300f8..cf6d71783 100644
--- a/Workshops/BuildYourOwnEventStore/05-StreamAggregation/StreamState.cs
+++ b/Workshops/BuildYourOwnEventStore/05-StreamAggregation/StreamState.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace EventStoreBasics;
public class StreamState
diff --git a/Workshops/BuildYourOwnEventStore/06-TimeTraveling/06-TimeTraveling.csproj b/Workshops/BuildYourOwnEventStore/06-TimeTraveling/06-TimeTraveling.csproj
index 0e3f2b7b0..11050d45e 100644
--- a/Workshops/BuildYourOwnEventStore/06-TimeTraveling/06-TimeTraveling.csproj
+++ b/Workshops/BuildYourOwnEventStore/06-TimeTraveling/06-TimeTraveling.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Workshops/BuildYourOwnEventStore/06-TimeTraveling/EventStore.cs b/Workshops/BuildYourOwnEventStore/06-TimeTraveling/EventStore.cs
index 409ef316a..cf3541ba2 100644
--- a/Workshops/BuildYourOwnEventStore/06-TimeTraveling/EventStore.cs
+++ b/Workshops/BuildYourOwnEventStore/06-TimeTraveling/EventStore.cs
@@ -1,7 +1,5 @@
-using System;
using System.Collections;
using System.Data;
-using System.Linq;
using Dapper;
using Newtonsoft.Json;
using Npgsql;
diff --git a/Workshops/BuildYourOwnEventStore/06-TimeTraveling/Exercise06TimeTraveling.cs b/Workshops/BuildYourOwnEventStore/06-TimeTraveling/Exercise06TimeTraveling.cs
index 3f8c10b28..273289054 100644
--- a/Workshops/BuildYourOwnEventStore/06-TimeTraveling/Exercise06TimeTraveling.cs
+++ b/Workshops/BuildYourOwnEventStore/06-TimeTraveling/Exercise06TimeTraveling.cs
@@ -1,4 +1,3 @@
-using System;
using FluentAssertions;
using Npgsql;
using Tools.Tools;
diff --git a/Workshops/BuildYourOwnEventStore/06-TimeTraveling/IEventStore.cs b/Workshops/BuildYourOwnEventStore/06-TimeTraveling/IEventStore.cs
index abb016ade..c34f60d2f 100644
--- a/Workshops/BuildYourOwnEventStore/06-TimeTraveling/IEventStore.cs
+++ b/Workshops/BuildYourOwnEventStore/06-TimeTraveling/IEventStore.cs
@@ -1,4 +1,3 @@
-using System;
using System.Collections;
namespace EventStoreBasics;
diff --git a/Workshops/BuildYourOwnEventStore/06-TimeTraveling/StreamState.cs b/Workshops/BuildYourOwnEventStore/06-TimeTraveling/StreamState.cs
index deb4300f8..cf6d71783 100644
--- a/Workshops/BuildYourOwnEventStore/06-TimeTraveling/StreamState.cs
+++ b/Workshops/BuildYourOwnEventStore/06-TimeTraveling/StreamState.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace EventStoreBasics;
public class StreamState
diff --git a/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/07-AggregateAndRepository.csproj b/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/07-AggregateAndRepository.csproj
index 0e3f2b7b0..11050d45e 100644
--- a/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/07-AggregateAndRepository.csproj
+++ b/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/07-AggregateAndRepository.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/Aggregate.cs b/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/Aggregate.cs
index 7f0b22385..805db7d90 100644
--- a/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/Aggregate.cs
+++ b/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/Aggregate.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
using Newtonsoft.Json;
namespace EventStoreBasics;
diff --git a/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/EventStore.cs b/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/EventStore.cs
index d61dd1a87..1db4dab3b 100644
--- a/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/EventStore.cs
+++ b/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/EventStore.cs
@@ -1,7 +1,5 @@
-using System;
using System.Collections;
using System.Data;
-using System.Linq;
using Dapper;
using Newtonsoft.Json;
using Npgsql;
diff --git a/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/Exercise07AggregateAndRepository.cs b/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/Exercise07AggregateAndRepository.cs
index ddb735416..ce2c2547b 100644
--- a/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/Exercise07AggregateAndRepository.cs
+++ b/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/Exercise07AggregateAndRepository.cs
@@ -1,4 +1,3 @@
-using System;
using FluentAssertions;
using Npgsql;
using Tools.Tools;
diff --git a/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/IAggregate.cs b/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/IAggregate.cs
index a06dfd969..8f63d51c6 100644
--- a/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/IAggregate.cs
+++ b/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/IAggregate.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-
namespace EventStoreBasics;
public interface IAggregate
diff --git a/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/IEventStore.cs b/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/IEventStore.cs
index 395c54ab5..b7f436f52 100644
--- a/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/IEventStore.cs
+++ b/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/IEventStore.cs
@@ -1,4 +1,3 @@
-using System;
using System.Collections;
namespace EventStoreBasics;
diff --git a/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/IRepository.cs b/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/IRepository.cs
index a404988df..efbcb97ec 100644
--- a/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/IRepository.cs
+++ b/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/IRepository.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace EventStoreBasics;
public interface IRepository where T : IAggregate
diff --git a/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/Repository.cs b/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/Repository.cs
index 86f91d3e0..3543d81db 100644
--- a/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/Repository.cs
+++ b/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/Repository.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace EventStoreBasics;
public class Repository: IRepository where T : IAggregate
diff --git a/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/StreamState.cs b/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/StreamState.cs
index deb4300f8..cf6d71783 100644
--- a/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/StreamState.cs
+++ b/Workshops/BuildYourOwnEventStore/07-AggregateAndRepository/StreamState.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace EventStoreBasics;
public class StreamState
diff --git a/Workshops/BuildYourOwnEventStore/08-Snapshots/08-Snapshots.csproj b/Workshops/BuildYourOwnEventStore/08-Snapshots/08-Snapshots.csproj
index 0e3f2b7b0..11050d45e 100644
--- a/Workshops/BuildYourOwnEventStore/08-Snapshots/08-Snapshots.csproj
+++ b/Workshops/BuildYourOwnEventStore/08-Snapshots/08-Snapshots.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Workshops/BuildYourOwnEventStore/08-Snapshots/Aggregate.cs b/Workshops/BuildYourOwnEventStore/08-Snapshots/Aggregate.cs
index fff055184..91a31fe0b 100644
--- a/Workshops/BuildYourOwnEventStore/08-Snapshots/Aggregate.cs
+++ b/Workshops/BuildYourOwnEventStore/08-Snapshots/Aggregate.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
using Newtonsoft.Json;
namespace EventStoreBasics;
diff --git a/Workshops/BuildYourOwnEventStore/08-Snapshots/EventStore.cs b/Workshops/BuildYourOwnEventStore/08-Snapshots/EventStore.cs
index 7f91a62a2..49754e8f7 100644
--- a/Workshops/BuildYourOwnEventStore/08-Snapshots/EventStore.cs
+++ b/Workshops/BuildYourOwnEventStore/08-Snapshots/EventStore.cs
@@ -1,8 +1,5 @@
-using System;
using System.Collections;
-using System.Collections.Generic;
using System.Data;
-using System.Linq;
using Dapper;
using Newtonsoft.Json;
using Npgsql;
diff --git a/Workshops/BuildYourOwnEventStore/08-Snapshots/Exercise08Snapshots.cs b/Workshops/BuildYourOwnEventStore/08-Snapshots/Exercise08Snapshots.cs
index 87b16fdb5..55913d156 100644
--- a/Workshops/BuildYourOwnEventStore/08-Snapshots/Exercise08Snapshots.cs
+++ b/Workshops/BuildYourOwnEventStore/08-Snapshots/Exercise08Snapshots.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Linq;
using System.Linq.Expressions;
using Dapper;
using Dapper.Contrib.Extensions;
diff --git a/Workshops/BuildYourOwnEventStore/08-Snapshots/IAggregate.cs b/Workshops/BuildYourOwnEventStore/08-Snapshots/IAggregate.cs
index a06dfd969..8f63d51c6 100644
--- a/Workshops/BuildYourOwnEventStore/08-Snapshots/IAggregate.cs
+++ b/Workshops/BuildYourOwnEventStore/08-Snapshots/IAggregate.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-
namespace EventStoreBasics;
public interface IAggregate
diff --git a/Workshops/BuildYourOwnEventStore/08-Snapshots/IEventStore.cs b/Workshops/BuildYourOwnEventStore/08-Snapshots/IEventStore.cs
index f508a265d..362219821 100644
--- a/Workshops/BuildYourOwnEventStore/08-Snapshots/IEventStore.cs
+++ b/Workshops/BuildYourOwnEventStore/08-Snapshots/IEventStore.cs
@@ -1,4 +1,3 @@
-using System;
using System.Collections;
namespace EventStoreBasics;
diff --git a/Workshops/BuildYourOwnEventStore/08-Snapshots/IRepository.cs b/Workshops/BuildYourOwnEventStore/08-Snapshots/IRepository.cs
index a404988df..efbcb97ec 100644
--- a/Workshops/BuildYourOwnEventStore/08-Snapshots/IRepository.cs
+++ b/Workshops/BuildYourOwnEventStore/08-Snapshots/IRepository.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace EventStoreBasics;
public interface IRepository where T : IAggregate
diff --git a/Workshops/BuildYourOwnEventStore/08-Snapshots/ISnapshot.cs b/Workshops/BuildYourOwnEventStore/08-Snapshots/ISnapshot.cs
index b10cd493b..365d98297 100644
--- a/Workshops/BuildYourOwnEventStore/08-Snapshots/ISnapshot.cs
+++ b/Workshops/BuildYourOwnEventStore/08-Snapshots/ISnapshot.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace EventStoreBasics;
public interface ISnapshot
diff --git a/Workshops/BuildYourOwnEventStore/08-Snapshots/Repository.cs b/Workshops/BuildYourOwnEventStore/08-Snapshots/Repository.cs
index daa064354..8dc3505ac 100644
--- a/Workshops/BuildYourOwnEventStore/08-Snapshots/Repository.cs
+++ b/Workshops/BuildYourOwnEventStore/08-Snapshots/Repository.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace EventStoreBasics;
public class Repository: IRepository where T: IAggregate
diff --git a/Workshops/BuildYourOwnEventStore/08-Snapshots/SnapshotToTable.cs b/Workshops/BuildYourOwnEventStore/08-Snapshots/SnapshotToTable.cs
index 20ceff289..8df133d6e 100644
--- a/Workshops/BuildYourOwnEventStore/08-Snapshots/SnapshotToTable.cs
+++ b/Workshops/BuildYourOwnEventStore/08-Snapshots/SnapshotToTable.cs
@@ -1,4 +1,3 @@
-using System;
using Npgsql;
namespace EventStoreBasics;
diff --git a/Workshops/BuildYourOwnEventStore/08-Snapshots/StreamState.cs b/Workshops/BuildYourOwnEventStore/08-Snapshots/StreamState.cs
index deb4300f8..cf6d71783 100644
--- a/Workshops/BuildYourOwnEventStore/08-Snapshots/StreamState.cs
+++ b/Workshops/BuildYourOwnEventStore/08-Snapshots/StreamState.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace EventStoreBasics;
public class StreamState
diff --git a/Workshops/BuildYourOwnEventStore/09-Projections/09-Projections.csproj b/Workshops/BuildYourOwnEventStore/09-Projections/09-Projections.csproj
index 0e3f2b7b0..11050d45e 100644
--- a/Workshops/BuildYourOwnEventStore/09-Projections/09-Projections.csproj
+++ b/Workshops/BuildYourOwnEventStore/09-Projections/09-Projections.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Workshops/BuildYourOwnEventStore/09-Projections/Aggregate.cs b/Workshops/BuildYourOwnEventStore/09-Projections/Aggregate.cs
index fff055184..91a31fe0b 100644
--- a/Workshops/BuildYourOwnEventStore/09-Projections/Aggregate.cs
+++ b/Workshops/BuildYourOwnEventStore/09-Projections/Aggregate.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
using Newtonsoft.Json;
namespace EventStoreBasics;
diff --git a/Workshops/BuildYourOwnEventStore/09-Projections/EventStore.cs b/Workshops/BuildYourOwnEventStore/09-Projections/EventStore.cs
index 0bcb585be..69374c2d8 100644
--- a/Workshops/BuildYourOwnEventStore/09-Projections/EventStore.cs
+++ b/Workshops/BuildYourOwnEventStore/09-Projections/EventStore.cs
@@ -1,8 +1,5 @@
-using System;
using System.Collections;
-using System.Collections.Generic;
using System.Data;
-using System.Linq;
using Dapper;
using Newtonsoft.Json;
using Npgsql;
diff --git a/Workshops/BuildYourOwnEventStore/09-Projections/Exercise09Projections.cs b/Workshops/BuildYourOwnEventStore/09-Projections/Exercise09Projections.cs
index ca895cf18..89858113b 100644
--- a/Workshops/BuildYourOwnEventStore/09-Projections/Exercise09Projections.cs
+++ b/Workshops/BuildYourOwnEventStore/09-Projections/Exercise09Projections.cs
@@ -1,4 +1,3 @@
-using System;
using Dapper.Contrib.Extensions;
using FluentAssertions;
using Newtonsoft.Json;
diff --git a/Workshops/BuildYourOwnEventStore/09-Projections/IAggregate.cs b/Workshops/BuildYourOwnEventStore/09-Projections/IAggregate.cs
index a06dfd969..8f63d51c6 100644
--- a/Workshops/BuildYourOwnEventStore/09-Projections/IAggregate.cs
+++ b/Workshops/BuildYourOwnEventStore/09-Projections/IAggregate.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-
namespace EventStoreBasics;
public interface IAggregate
diff --git a/Workshops/BuildYourOwnEventStore/09-Projections/IEventStore.cs b/Workshops/BuildYourOwnEventStore/09-Projections/IEventStore.cs
index a920fc2f8..7017f3394 100644
--- a/Workshops/BuildYourOwnEventStore/09-Projections/IEventStore.cs
+++ b/Workshops/BuildYourOwnEventStore/09-Projections/IEventStore.cs
@@ -1,4 +1,3 @@
-using System;
using System.Collections;
namespace EventStoreBasics;
diff --git a/Workshops/BuildYourOwnEventStore/09-Projections/IProjection.cs b/Workshops/BuildYourOwnEventStore/09-Projections/IProjection.cs
index d5176e994..d64c223bf 100644
--- a/Workshops/BuildYourOwnEventStore/09-Projections/IProjection.cs
+++ b/Workshops/BuildYourOwnEventStore/09-Projections/IProjection.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace EventStoreBasics;
public interface IProjection
diff --git a/Workshops/BuildYourOwnEventStore/09-Projections/IRepository.cs b/Workshops/BuildYourOwnEventStore/09-Projections/IRepository.cs
index a404988df..efbcb97ec 100644
--- a/Workshops/BuildYourOwnEventStore/09-Projections/IRepository.cs
+++ b/Workshops/BuildYourOwnEventStore/09-Projections/IRepository.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace EventStoreBasics;
public interface IRepository where T : IAggregate
diff --git a/Workshops/BuildYourOwnEventStore/09-Projections/ISnapshot.cs b/Workshops/BuildYourOwnEventStore/09-Projections/ISnapshot.cs
index b10cd493b..365d98297 100644
--- a/Workshops/BuildYourOwnEventStore/09-Projections/ISnapshot.cs
+++ b/Workshops/BuildYourOwnEventStore/09-Projections/ISnapshot.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace EventStoreBasics;
public interface ISnapshot
diff --git a/Workshops/BuildYourOwnEventStore/09-Projections/Repository.cs b/Workshops/BuildYourOwnEventStore/09-Projections/Repository.cs
index daa064354..8dc3505ac 100644
--- a/Workshops/BuildYourOwnEventStore/09-Projections/Repository.cs
+++ b/Workshops/BuildYourOwnEventStore/09-Projections/Repository.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace EventStoreBasics;
public class Repository: IRepository where T: IAggregate
diff --git a/Workshops/BuildYourOwnEventStore/09-Projections/SnapshotToTable.cs b/Workshops/BuildYourOwnEventStore/09-Projections/SnapshotToTable.cs
index a0131c1ee..81bd9ece7 100644
--- a/Workshops/BuildYourOwnEventStore/09-Projections/SnapshotToTable.cs
+++ b/Workshops/BuildYourOwnEventStore/09-Projections/SnapshotToTable.cs
@@ -1,4 +1,3 @@
-using System;
using Dapper;
using Npgsql;
diff --git a/Workshops/BuildYourOwnEventStore/09-Projections/StreamState.cs b/Workshops/BuildYourOwnEventStore/09-Projections/StreamState.cs
index deb4300f8..cf6d71783 100644
--- a/Workshops/BuildYourOwnEventStore/09-Projections/StreamState.cs
+++ b/Workshops/BuildYourOwnEventStore/09-Projections/StreamState.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace EventStoreBasics;
public class StreamState
diff --git a/Workshops/BuildYourOwnEventStore/10-ProjectionsWithMarten/10-ProjectionsWithMarten.csproj b/Workshops/BuildYourOwnEventStore/10-ProjectionsWithMarten/10-ProjectionsWithMarten.csproj
index 0e3f2b7b0..11050d45e 100644
--- a/Workshops/BuildYourOwnEventStore/10-ProjectionsWithMarten/10-ProjectionsWithMarten.csproj
+++ b/Workshops/BuildYourOwnEventStore/10-ProjectionsWithMarten/10-ProjectionsWithMarten.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Workshops/BuildYourOwnEventStore/10-ProjectionsWithMarten/Aggregate.cs b/Workshops/BuildYourOwnEventStore/10-ProjectionsWithMarten/Aggregate.cs
index 7f0b22385..805db7d90 100644
--- a/Workshops/BuildYourOwnEventStore/10-ProjectionsWithMarten/Aggregate.cs
+++ b/Workshops/BuildYourOwnEventStore/10-ProjectionsWithMarten/Aggregate.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
using Newtonsoft.Json;
namespace EventStoreBasics;
diff --git a/Workshops/BuildYourOwnEventStore/10-ProjectionsWithMarten/Exercise10ProjectionsWithMarten.cs b/Workshops/BuildYourOwnEventStore/10-ProjectionsWithMarten/Exercise10ProjectionsWithMarten.cs
index 37fdea1c1..076405182 100644
--- a/Workshops/BuildYourOwnEventStore/10-ProjectionsWithMarten/Exercise10ProjectionsWithMarten.cs
+++ b/Workshops/BuildYourOwnEventStore/10-ProjectionsWithMarten/Exercise10ProjectionsWithMarten.cs
@@ -1,4 +1,3 @@
-using System;
using FluentAssertions;
using Marten;
using Marten.Events.Projections;
diff --git a/Workshops/BuildYourOwnEventStore/10-ProjectionsWithMarten/IAggregate.cs b/Workshops/BuildYourOwnEventStore/10-ProjectionsWithMarten/IAggregate.cs
index a06dfd969..8f63d51c6 100644
--- a/Workshops/BuildYourOwnEventStore/10-ProjectionsWithMarten/IAggregate.cs
+++ b/Workshops/BuildYourOwnEventStore/10-ProjectionsWithMarten/IAggregate.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-
namespace EventStoreBasics;
public interface IAggregate
diff --git a/Workshops/BuildYourOwnEventStore/10-ProjectionsWithMarten/IRepository.cs b/Workshops/BuildYourOwnEventStore/10-ProjectionsWithMarten/IRepository.cs
index 94a56533c..cbe31f296 100644
--- a/Workshops/BuildYourOwnEventStore/10-ProjectionsWithMarten/IRepository.cs
+++ b/Workshops/BuildYourOwnEventStore/10-ProjectionsWithMarten/IRepository.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace EventStoreBasics;
public interface IRepository where T : IAggregate
diff --git a/Workshops/BuildYourOwnEventStore/10-ProjectionsWithMarten/MartenRepository.cs b/Workshops/BuildYourOwnEventStore/10-ProjectionsWithMarten/MartenRepository.cs
index f7ace558a..dfde51d18 100644
--- a/Workshops/BuildYourOwnEventStore/10-ProjectionsWithMarten/MartenRepository.cs
+++ b/Workshops/BuildYourOwnEventStore/10-ProjectionsWithMarten/MartenRepository.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Linq;
using Marten;
namespace EventStoreBasics;
diff --git a/Workshops/BuildYourOwnEventStore/10-ProjectionsWithMarten/StreamState.cs b/Workshops/BuildYourOwnEventStore/10-ProjectionsWithMarten/StreamState.cs
index deb4300f8..cf6d71783 100644
--- a/Workshops/BuildYourOwnEventStore/10-ProjectionsWithMarten/StreamState.cs
+++ b/Workshops/BuildYourOwnEventStore/10-ProjectionsWithMarten/StreamState.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace EventStoreBasics;
public class StreamState
diff --git a/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/EventStoreBasics.Tests.csproj b/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/EventStoreBasics.Tests.csproj
index a4554ddc0..d1d3e5d44 100644
--- a/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/EventStoreBasics.Tests.csproj
+++ b/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/EventStoreBasics.Tests.csproj
@@ -2,10 +2,6 @@
net6.0
- enable
- true
- trx%3bLogFileName=$(MSBuildProjectName).trx
- $(MSBuildThisFileDirectory)/bin/TestResults/$(TargetFramework)
diff --git a/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise01CreateStreamsTable.cs b/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise01CreateStreamsTable.cs
index e96ea84e3..55d9c8bb9 100644
--- a/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise01CreateStreamsTable.cs
+++ b/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise01CreateStreamsTable.cs
@@ -1,4 +1,3 @@
-using System;
using FluentAssertions;
using Npgsql;
using Tools.Tools;
diff --git a/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise02CreateEventsTable.cs b/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise02CreateEventsTable.cs
index 68b9aea1f..8f5e10e00 100644
--- a/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise02CreateEventsTable.cs
+++ b/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise02CreateEventsTable.cs
@@ -1,4 +1,3 @@
-using System;
using FluentAssertions;
using Npgsql;
using Tools.Tools;
diff --git a/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise03CreateAppendEventFunction.cs b/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise03CreateAppendEventFunction.cs
index 4eb8922ce..44ef9e15c 100644
--- a/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise03CreateAppendEventFunction.cs
+++ b/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise03CreateAppendEventFunction.cs
@@ -1,4 +1,3 @@
-using System;
using Dapper;
using FluentAssertions;
using Npgsql;
diff --git a/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise04EventStoreMethods.cs b/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise04EventStoreMethods.cs
index 1613487a1..838af69d9 100644
--- a/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise04EventStoreMethods.cs
+++ b/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise04EventStoreMethods.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Linq;
using FluentAssertions;
using Npgsql;
using Tools.Tools;
diff --git a/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise05StreamAggregation.cs b/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise05StreamAggregation.cs
index 539b5ba24..0ce08008b 100644
--- a/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise05StreamAggregation.cs
+++ b/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise05StreamAggregation.cs
@@ -1,4 +1,3 @@
-using System;
using FluentAssertions;
using Npgsql;
using Tools.Tools;
diff --git a/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise06TimeTraveling.cs b/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise06TimeTraveling.cs
index 9cc225675..6237aec25 100644
--- a/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise06TimeTraveling.cs
+++ b/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise06TimeTraveling.cs
@@ -1,4 +1,3 @@
-using System;
using FluentAssertions;
using Npgsql;
using Tools.Tools;
diff --git a/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise07AggregateAndRepository.cs b/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise07AggregateAndRepository.cs
index 10408d169..c590532ca 100644
--- a/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise07AggregateAndRepository.cs
+++ b/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise07AggregateAndRepository.cs
@@ -1,4 +1,3 @@
-using System;
using FluentAssertions;
using Npgsql;
using Tools.Tools;
diff --git a/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise08Snapshots.cs b/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise08Snapshots.cs
index 4acd5dd6e..ae7c72061 100644
--- a/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise08Snapshots.cs
+++ b/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise08Snapshots.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Linq;
using System.Linq.Expressions;
using Dapper;
using Dapper.Contrib.Extensions;
diff --git a/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise09Projections.cs b/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise09Projections.cs
index 596e86491..6750f2651 100644
--- a/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise09Projections.cs
+++ b/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise09Projections.cs
@@ -1,4 +1,3 @@
-using System;
using Dapper;
using Dapper.Contrib.Extensions;
using FluentAssertions;
diff --git a/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise10ProjectionsWithMarten.cs b/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise10ProjectionsWithMarten.cs
index 53b43fc39..367015c47 100644
--- a/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise10ProjectionsWithMarten.cs
+++ b/Workshops/BuildYourOwnEventStore/EventStoreBasics.Tests/Exercise10ProjectionsWithMarten.cs
@@ -1,4 +1,3 @@
-using System;
using FluentAssertions;
using Marten;
using Marten.Events.Projections;
diff --git a/Workshops/BuildYourOwnEventStore/EventStoreBasics/Aggregate.cs b/Workshops/BuildYourOwnEventStore/EventStoreBasics/Aggregate.cs
index fff055184..91a31fe0b 100644
--- a/Workshops/BuildYourOwnEventStore/EventStoreBasics/Aggregate.cs
+++ b/Workshops/BuildYourOwnEventStore/EventStoreBasics/Aggregate.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
using Newtonsoft.Json;
namespace EventStoreBasics;
diff --git a/Workshops/BuildYourOwnEventStore/EventStoreBasics/EventStore.cs b/Workshops/BuildYourOwnEventStore/EventStoreBasics/EventStore.cs
index db407e50b..8bbbfd607 100644
--- a/Workshops/BuildYourOwnEventStore/EventStoreBasics/EventStore.cs
+++ b/Workshops/BuildYourOwnEventStore/EventStoreBasics/EventStore.cs
@@ -1,8 +1,5 @@
-using System;
using System.Collections;
-using System.Collections.Generic;
using System.Data;
-using System.Linq;
using Dapper;
using EventStoreBasics.Tools;
using Newtonsoft.Json;
diff --git a/Workshops/BuildYourOwnEventStore/EventStoreBasics/EventStoreBasics.csproj b/Workshops/BuildYourOwnEventStore/EventStoreBasics/EventStoreBasics.csproj
index c195d8368..533a28996 100644
--- a/Workshops/BuildYourOwnEventStore/EventStoreBasics/EventStoreBasics.csproj
+++ b/Workshops/BuildYourOwnEventStore/EventStoreBasics/EventStoreBasics.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
diff --git a/Workshops/BuildYourOwnEventStore/EventStoreBasics/IAggregate.cs b/Workshops/BuildYourOwnEventStore/EventStoreBasics/IAggregate.cs
index a06dfd969..8f63d51c6 100644
--- a/Workshops/BuildYourOwnEventStore/EventStoreBasics/IAggregate.cs
+++ b/Workshops/BuildYourOwnEventStore/EventStoreBasics/IAggregate.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-
namespace EventStoreBasics;
public interface IAggregate
diff --git a/Workshops/BuildYourOwnEventStore/EventStoreBasics/IEventStore.cs b/Workshops/BuildYourOwnEventStore/EventStoreBasics/IEventStore.cs
index eb5410c65..a01f455fc 100644
--- a/Workshops/BuildYourOwnEventStore/EventStoreBasics/IEventStore.cs
+++ b/Workshops/BuildYourOwnEventStore/EventStoreBasics/IEventStore.cs
@@ -1,4 +1,3 @@
-using System;
using System.Collections;
namespace EventStoreBasics;
diff --git a/Workshops/BuildYourOwnEventStore/EventStoreBasics/IProjection.cs b/Workshops/BuildYourOwnEventStore/EventStoreBasics/IProjection.cs
index 1e1072bd2..bc5043281 100644
--- a/Workshops/BuildYourOwnEventStore/EventStoreBasics/IProjection.cs
+++ b/Workshops/BuildYourOwnEventStore/EventStoreBasics/IProjection.cs
@@ -1,7 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-
namespace EventStoreBasics;
public interface IProjection
diff --git a/Workshops/BuildYourOwnEventStore/EventStoreBasics/IRepository.cs b/Workshops/BuildYourOwnEventStore/EventStoreBasics/IRepository.cs
index a404988df..efbcb97ec 100644
--- a/Workshops/BuildYourOwnEventStore/EventStoreBasics/IRepository.cs
+++ b/Workshops/BuildYourOwnEventStore/EventStoreBasics/IRepository.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace EventStoreBasics;
public interface IRepository where T : IAggregate
diff --git a/Workshops/BuildYourOwnEventStore/EventStoreBasics/ISnapshot.cs b/Workshops/BuildYourOwnEventStore/EventStoreBasics/ISnapshot.cs
index b10cd493b..365d98297 100644
--- a/Workshops/BuildYourOwnEventStore/EventStoreBasics/ISnapshot.cs
+++ b/Workshops/BuildYourOwnEventStore/EventStoreBasics/ISnapshot.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace EventStoreBasics;
public interface ISnapshot
diff --git a/Workshops/BuildYourOwnEventStore/EventStoreBasics/MartenRepository.cs b/Workshops/BuildYourOwnEventStore/EventStoreBasics/MartenRepository.cs
index 758a11f89..fa24be4d8 100644
--- a/Workshops/BuildYourOwnEventStore/EventStoreBasics/MartenRepository.cs
+++ b/Workshops/BuildYourOwnEventStore/EventStoreBasics/MartenRepository.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Linq;
using Marten;
namespace EventStoreBasics;
diff --git a/Workshops/BuildYourOwnEventStore/EventStoreBasics/Repository.cs b/Workshops/BuildYourOwnEventStore/EventStoreBasics/Repository.cs
index daa064354..8dc3505ac 100644
--- a/Workshops/BuildYourOwnEventStore/EventStoreBasics/Repository.cs
+++ b/Workshops/BuildYourOwnEventStore/EventStoreBasics/Repository.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace EventStoreBasics;
public class Repository: IRepository where T: IAggregate
diff --git a/Workshops/BuildYourOwnEventStore/EventStoreBasics/SnapshotToTable.cs b/Workshops/BuildYourOwnEventStore/EventStoreBasics/SnapshotToTable.cs
index a0131c1ee..81bd9ece7 100644
--- a/Workshops/BuildYourOwnEventStore/EventStoreBasics/SnapshotToTable.cs
+++ b/Workshops/BuildYourOwnEventStore/EventStoreBasics/SnapshotToTable.cs
@@ -1,4 +1,3 @@
-using System;
using Dapper;
using Npgsql;
diff --git a/Workshops/BuildYourOwnEventStore/EventStoreBasics/StreamState.cs b/Workshops/BuildYourOwnEventStore/EventStoreBasics/StreamState.cs
index deb4300f8..cf6d71783 100644
--- a/Workshops/BuildYourOwnEventStore/EventStoreBasics/StreamState.cs
+++ b/Workshops/BuildYourOwnEventStore/EventStoreBasics/StreamState.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace EventStoreBasics;
public class StreamState
diff --git a/Workshops/BuildYourOwnEventStore/EventStoreBasics/Tools/ReflectionInvoker.cs b/Workshops/BuildYourOwnEventStore/EventStoreBasics/Tools/ReflectionInvoker.cs
index dfd1d633e..2fe35f165 100644
--- a/Workshops/BuildYourOwnEventStore/EventStoreBasics/Tools/ReflectionInvoker.cs
+++ b/Workshops/BuildYourOwnEventStore/EventStoreBasics/Tools/ReflectionInvoker.cs
@@ -1,4 +1,3 @@
-using System.Linq;
using System.Reflection;
namespace EventStoreBasics.Tools;
diff --git a/Workshops/BuildYourOwnEventStore/Tools/Tools.csproj b/Workshops/BuildYourOwnEventStore/Tools/Tools.csproj
index e79614964..058207321 100644
--- a/Workshops/BuildYourOwnEventStore/Tools/Tools.csproj
+++ b/Workshops/BuildYourOwnEventStore/Tools/Tools.csproj
@@ -2,8 +2,6 @@
net6.0
- enable
- true
false
diff --git a/Workshops/BuildYourOwnEventStore/Tools/Tools/PostgresSchemaProvider.cs b/Workshops/BuildYourOwnEventStore/Tools/Tools/PostgresSchemaProvider.cs
index 5ef54f53d..0b3658892 100644
--- a/Workshops/BuildYourOwnEventStore/Tools/Tools/PostgresSchemaProvider.cs
+++ b/Workshops/BuildYourOwnEventStore/Tools/Tools/PostgresSchemaProvider.cs
@@ -1,5 +1,3 @@
-using System.Collections.Generic;
-using System.Linq;
using Dapper;
using Npgsql;
diff --git a/Workshops/BuildYourOwnEventStore/Tools/Tools/ReflectionInvoker.cs b/Workshops/BuildYourOwnEventStore/Tools/Tools/ReflectionInvoker.cs
index 9f4bd6ea9..0232cc9c4 100644
--- a/Workshops/BuildYourOwnEventStore/Tools/Tools/ReflectionInvoker.cs
+++ b/Workshops/BuildYourOwnEventStore/Tools/Tools/ReflectionInvoker.cs
@@ -1,4 +1,3 @@
-using System.Linq;
using System.Reflection;
namespace Tools.Tools;