public PawningController() { _pawningService = new PawningService(new UnitOfWorkFactory()); _appraisalService = new AppraisalService(new UnitOfWorkFactory()); _customerService = new CustomerService(new UnitOfWorkFactory()); _referenceService = new ReferenceService(new UnitOfWorkFactory()); }
public BaseController() { _pawningService = new PawningService(new UnitOfWorkFactory()); _appraisalService = new AppraisalService(new UnitOfWorkFactory()); _customerService = new CustomerService(new UnitOfWorkFactory()); _referenceService = new ReferenceService(new UnitOfWorkFactory()); _pawnshopTransactionService = new PawnshopTransactionService(new UnitOfWorkFactory()); }
private void UpdateAppraisalService(string dataSource) { foreach (var service in _appraisalServices) { if (service.GetType().Name == dataSource) { AppraisalService = service; return; } } }
public PawningController( IPawningService pawningService, IAppraisalService appraisalService, ICustomerService customerServic, IReferenceService referenceService) { _pawningService = pawningService; _appraisalService = appraisalService; _customerService = customerServic; _referenceService = referenceService; }
public AppraisalController(IPawningService pawningService, IAppraisalService appraisalService, ICustomerService customerServic, IReferenceService referenceService, IPawnshopTransactionService pawnshopTransactionService) { _pawningService = pawningService; _appraisalService = appraisalService; _customerService = customerServic; _referenceService = referenceService; _pawnshopTransactionService = pawnshopTransactionService; }
public HomeController(IAppraisalService appraisalService) { // WARNING - I don't think we'll ever get here... this.appraisalService = appraisalService; }
public AppraisalController() { _appraisalService = new AppraisalService(new UnitOfWorkFactory()); }
public AppraisalController(IAppraisalService customerService) { _appraisalService = customerService; }