public void SetUp() { participantValidator = Substitute.For <IParticipantValidator>(); countryManager = CountryManager.GetInstance(); vatManager = new VATManager(participantValidator); client = CreateClientStub(); provider = new ServiceProvider(); }
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); }