コード例 #1
0
        public void WhenProviderIsNotVATPayer_VATEqualsTo0()
        {
            participantValidator.ParticipantIsVATPayer(provider).Returns(false);

            double appropriateVAT = vatManager.GetAppropriateVAT(provider, client);

            Assert.AreEqual(0, appropriateVAT);
        }
コード例 #2
0
        public void WriteBillToClient(Client client)
        {
            VATManager vatManager     = new VATManager();
            double     appropriateVAT = vatManager.GetAppropriateVAT(this, client);
            double     priceAfterVAT  = vatManager.ApplyVATToPrice(appropriateVAT, this.Service.ServicePrice);

            Bill bill = new Bill(client.Name, this.Name, Service, appropriateVAT, priceAfterVAT);

            BillPrinter.PrintBillToConsole(bill);
        }