public async Task CreateShouldSucceed()
        {
            //Arrange
            var code   = "TestCode";
            var name   = "TestName";
            var source = "TestSource";

            var productionSite = new ProductionSite(Guid.NewGuid(), code, name, source);

            //Act
            await _repository.CreateAsync(productionSite);

            //Asssert
            var data = RepositoryHelper.ForProductionSite.GetProductionSites();

            data.Should().HaveCount(1);
            var result = data.First();

            result.Name.Should().Be(name);
            result.Code.Should().Be(code);
            result.Source.Should().Be(source);
        }
            public static ProductionSite CreateProductionSite(string code, string name, string source)
            {
                // prepare
                var writeRepository = new ProductionSiteWriteRepository(new DataContext(new PersistenceConfiguration(RepositoryTestsHelper.ConnectionString)));
                var readRepository  = new ProductionSiteReadRepository(new DataContext(new PersistenceConfiguration(RepositoryTestsHelper.ConnectionString)));

                // create
                var productionSite = new ProductionSite(Guid.NewGuid(), code, name, source);
                IEnumerable <ProductionSite> productionSites = new List <ProductionSite>()
                {
                    productionSite
                };

                productionSites.ToList().ForEach(x => writeRepository.CreateAsync(x).GetAwaiter().GetResult());

                // result
                var result = readRepository.GetAsync(productionSite.Id).Result;

                return(result);
            }