public void TestBuildOrderWithFixedDiscount() { CreateTestFixedDiscountRow(); Assert.That(_order.GetFixedDiscountRows()[0].GetDiscountId(), Is.EqualTo("1")); Assert.That(_order.GetFixedDiscountRows()[0].GetAmountIncVat(), Is.EqualTo(100)); Assert.That(_order.GetFixedDiscountRows()[0].GetDescription(), Is.EqualTo("FixedDiscount")); }
public void TestBuildEmptyOrder() { CreateOrderBuilder sveaRequest = _order .SetCountryCode(CountryCode.NL) .Build(); Assert.That(sveaRequest.GetOrderRows().Count, Is.EqualTo(0)); Assert.That(sveaRequest.GetFixedDiscountRows().Count, Is.EqualTo(0)); }