public void Initialization() { _product1 = new global::Domain.Assortment.Product(new ProductId(Guid.NewGuid()), "P1", "Product 1", new TaxRate(0.23m)); _product2 = new global::Domain.Assortment.Product(new ProductId(Guid.NewGuid()), "P2", "Product 2", new TaxRate(0.23m)); _productMap = new RealProductMap(new ProductMapId(Guid.NewGuid())) { Products = new Dictionary<global::Domain.Assortment.Product, int>() { { _product1, 10 }, { _product2, 5 } } }; }
public void Initialization() { _product1 = new global::Domain.Assortment.Product(new ProductId(Guid.NewGuid()), "P1", "Product 1", new TaxRate(0.23m)); _product2 = new global::Domain.Assortment.Product(new ProductId(Guid.NewGuid()), "P2", "Product 2", new TaxRate(0.08m)); _productMap = new RealProductMap(new ProductMapId(Guid.NewGuid())) { Products = new Dictionary<global::Domain.Assortment.Product, int>() { {_product1, 20}, {_product2, 250} } }; _priceList = new global::Domain.PriceLists.PriceList<global::Domain.Route.Route>(new PriceListId(Guid.NewGuid())) { Prices = new Dictionary<global::Domain.Assortment.Product, Money>() { {_product1, Money.FromNative(2.35m, "Pln")}, {_product2, Money.FromNative(0.45m, "Pln")} } }; }
public void Initialization() { _taxRate = new TaxRate(0.23m); _product = new global::Domain.Assortment.Product(new ProductId(Guid.NewGuid()), "P1", "Product 1", _taxRate); }