public void Setup()
 {
     _operatorRepository = MockRepository.GenerateStub<IOperatorRepository>();
     _operatorService = new OperatorService(_operatorRepository);
     _urlHelper = MockRepository.GenerateStub<IUrlHelper>();
     _objectUnderTest = new OperatorsController(_operatorService,_urlHelper);
     _objectUnderTest.Request = new HttpRequestMessage();
     _objectUnderTest.Request.SetConfiguration(new HttpConfiguration());
 }
Example #2
0
 public OperatorService( IOperatorRepository operatorRepository)
 {
     _opetorRepository = operatorRepository;
 }
 public OperatorDeleteService(IOperatorRepository <Operator> repository)
 {
     this._repository = repository;
 }
 public OperatorController(IOperatorRepository ope_repo)
 {
     _ope_repo = ope_repo;
 }
 public LoanApplicationSubmissionService(IUnitOfWork unitOfWork, ILoanApplicationRepository loanApplications, IOperatorRepository operators)
 {
     this.unitOfWork       = unitOfWork;
     this.loanApplications = loanApplications;
     this.operators        = operators;
 }
 public OperatorDeleteCommandHandler(IOperatorRepository operatorRepository)
 {
     _operatorRepository = operatorRepository;
 }
Example #7
0
 public OperatorService(IOperatorRepository operatorRepository, IAddressRepository addressRepository)
 {
     _operatorRepository = operatorRepository;
     _addressRepository  = addressRepository;
 }
Example #8
0
 public OperatorService(IOperatorRepository repository) : base(repository)
 {
     _repository = repository;
 }
Example #9
0
 public Handler(IUnitOfWork unitOfWork, ILoanApplicationRepository loanApplications, IOperatorRepository operators)
 {
     this.unitOfWork       = unitOfWork;
     this.loanApplications = loanApplications;
     this.operators        = operators;
 }
Example #10
0
 public OperatorService(IOperatorRepository operatorRepository)
 {
     this.operatorRepository = operatorRepository;
 }