public void TestInitialize() { autoMapper.Reset(); autoMapper.Initialize(); product = new Product { Id = "ProductId", Name = "ProductName" }; productDto = new ProductDto { Id = "ProductId", Name = "ProductName" }; campaign = new Campaign { Id = "CampaignId", Name = "CampaignName", Start = DateTime.Now, End = DateTime.Now.AddMonths(1), Product = product }; campaignDto = new CampaignDto { Name = "CampaignName", Start = "01.02.2019", End = "01.03.2019", Product = productDto }; campaigns = new List <Campaign> { campaign }; }
public void TestInitialize() { autoMapper.Reset(); autoMapper.Initialize(); product = new Product { Id = "ProductId", Name = "ProductName" }; products = new List <Product> { product }; productDto = new ProductDto { Id = "ProductId", Name = "ProductName" }; }