コード例 #1
0
        public void TestBuildWithInvoiceFee()
        {
            CreateTestInvoiceFee();

            Assert.That(_order.GetInvoiceFeeRows()[0].GetName(), Is.EqualTo("Svea fee"));
            Assert.That(_order.GetInvoiceFeeRows()[0].GetDescription(), Is.EqualTo("Fee for invoice"));
            Assert.That(_order.GetInvoiceFeeRows()[0].GetAmountExVat(), Is.EqualTo(50));
            Assert.That(_order.GetInvoiceFeeRows()[0].GetUnit(), Is.EqualTo("st"));
            Assert.That(_order.GetInvoiceFeeRows()[0].GetVatPercent(), Is.EqualTo(25));
            Assert.That(_order.GetInvoiceFeeRows()[0].GetDiscountPercent(), Is.EqualTo(0));
        }