public void WhenProviderIsNotVATPayer_VATEqualsTo0() { participantValidator.ParticipantIsVATPayer(provider).Returns(false); double appropriateVAT = vatManager.GetAppropriateVAT(provider, client); Assert.AreEqual(0, appropriateVAT); }
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); }