Exemplo n.º 1
0
        public void SetUp()
        {
            invoiceRepository = MockRepository.GenerateMock<IInvoiceRepository>();
            accountRepository = MockRepository.GenerateMock<IAccountRepository>();
            contactRepository = MockRepository.GenerateMock<IContactRepository>();
            ewayProcessedDataRepository = MockRepository.GenerateMock<IEwayProcessedDataRepository>();
            invoiceHardcopyRepository = MockRepository.GenerateMock<IInvoiceHardcopyRepository>();

            ewayService = new EwayPaymentsService(invoiceRepository, accountRepository, contactRepository, ewayProcessedDataRepository, invoiceHardcopyRepository);
        }
Exemplo n.º 2
0
 public InvoicingService(IInvoiceRepository invoiceRepository, IAccountRepository accountRepository, 
     IPlanRepository planRepository, INetworkRepository networkRepository, IContractRepository contractRepository, IContactRepository contactRepository,
     ICompanyRepository companyRepository, INumberGeneratorService numberGeneratorService,
     ISettingRepository settingRepository, ICustomFeeRepository customFeeRepository, IInvoiceHardcopyRepository hardcopyRepository, IContractService contractService,
     IInvoiceSettings invoiceSettings, IEwayPaymentsService ewayPaymentsService, IDateTimeFacade dateTime)
 {
     _invoiceRepository = invoiceRepository;
     _accountRepository = accountRepository;
     _planRepository = planRepository;
     _networkRepository = networkRepository;
     _contractRepository = contractRepository;
     _contactRepository = contactRepository;
     _companyRepository = companyRepository;
     _numberGeneratorService = numberGeneratorService;
     _settingRepository = settingRepository;
     _contractService = contractService;
     _customFeeRepository = customFeeRepository;
     _invoiceHardcopyRepository = hardcopyRepository;
     _invoiceSettings = invoiceSettings;
     _ewayPaymentsService = ewayPaymentsService;
     _dateTime = dateTime;
 }