示例#1
0
 public PawningController()
 {
     _pawningService   = new PawningService(new UnitOfWorkFactory());
     _appraisalService = new AppraisalService(new UnitOfWorkFactory());
     _customerService  = new CustomerService(new UnitOfWorkFactory());
     _referenceService = new ReferenceService(new UnitOfWorkFactory());
 }
示例#2
0
 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());
 }
示例#3
0
 private void UpdateAppraisalService(string dataSource)
 {
     foreach (var service in _appraisalServices)
     {
         if (service.GetType().Name == dataSource)
         {
             AppraisalService = service;
             return;
         }
     }
 }
示例#4
0
 public PawningController(
     IPawningService pawningService,
     IAppraisalService appraisalService,
     ICustomerService customerServic,
     IReferenceService referenceService)
 {
     _pawningService   = pawningService;
     _appraisalService = appraisalService;
     _customerService  = customerServic;
     _referenceService = referenceService;
 }
示例#5
0
 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;
 }
示例#7
0
 public AppraisalController()
 {
     _appraisalService = new AppraisalService(new UnitOfWorkFactory());
 }
示例#8
0
 public AppraisalController(IAppraisalService customerService)
 {
     _appraisalService = customerService;
 }
 public HomeController(IAppraisalService appraisalService)
 {
     // WARNING - I don't think we'll ever get here...
     this.appraisalService = appraisalService;
 }