コード例 #1
0
        public void SetUp()
        {
            participantValidator = Substitute.For <IParticipantValidator>();
            countryManager       = CountryManager.GetInstance();
            vatManager           = new VATManager(participantValidator);

            client   = CreateClientStub();
            provider = new ServiceProvider();
        }
コード例 #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);
        }