public EmployeeController(IEmployeeService employeeService,
                           IPersonService personService,
                           IBusinessEntityAddressService businessEntityAddressService,
                           IBusinessEntityContactService businessEntityContactService,
                           IPhoneService phoneService,
                           IAddressService addressService,
                           IAddressTypeService addressTypeService,
                           IPhoneTypeService phoneTypeService,
                           IContactTypeService contactTypeService,
                           IBusinessEntityService businessEntityService,
                           IUnitOfWorkAsync unitOfWork)
 {
     this.businessEntityService        = businessEntityService;
     this.employeeService              = employeeService;
     this.unitOfWork                   = unitOfWork;
     this.addressService               = addressService;
     this.personService                = personService;
     this.businessEntityContactService = businessEntityContactService;
     this.businessEntityAddressService = businessEntityAddressService;
     this.personService                = personService;
     this.phoneService                 = phoneService;
     this.addressTypeService           = addressTypeService;
     this.phoneTypeService             = phoneTypeService;
     this.contactTypeService           = contactTypeService;
 }
Esempio n. 2
0
 public JobWorkerController(IJobWorkerService JobWorkerService, IBusinessEntityService BusinessEntityService, IAccountService AccountService, IPersonService PersonService, IPersonRegistrationService PersonRegistrationService, IPersonAddressService PersonAddressService, IPersonProcessService PersonProcessService, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
 {
     _JobWorkerService          = JobWorkerService;
     _PersonService             = PersonService;
     _PersonAddressService      = PersonAddressService;
     _BusinessEntityService     = BusinessEntityService;
     _AccountService            = AccountService;
     _PersonProcessService      = PersonProcessService;
     _PersonRegistrationService = PersonRegistrationService;
     _unitOfWork = unitOfWork;
     _exception  = exec;
 }
Esempio n. 3
0
 public AbstractBusinessEntityController(
     ApiSettings settings,
     ILogger <AbstractBusinessEntityController> logger,
     ITransactionCoordinator transactionCoordinator,
     IBusinessEntityService businessEntityService,
     IApiBusinessEntityModelMapper businessEntityModelMapper
     )
     : base(settings, logger, transactionCoordinator)
 {
     this.BusinessEntityService     = businessEntityService;
     this.BusinessEntityModelMapper = businessEntityModelMapper;
 }
Esempio n. 4
0
 public AgentController(IAgentService AgentService, IBusinessEntityService BusinessEntityService, IAccountService AccountService, IPersonService PersonService, IPersonRegistrationService PersonRegistrationService, IPersonAddressService PersonAddressService, IPersonProcessService PersonProcessService, IActivityLogService ActivityLogService, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
 {
     _AgentService              = AgentService;
     _PersonService             = PersonService;
     _PersonAddressService      = PersonAddressService;
     _BusinessEntityService     = BusinessEntityService;
     _AccountService            = AccountService;
     _PersonProcessService      = PersonProcessService;
     _PersonRegistrationService = PersonRegistrationService;
     _ActivityLogService        = ActivityLogService;
     _unitOfWork = unitOfWork;
     _exception  = exec;
 }
 public BusinessEntityController(
     ApiSettings settings,
     ILogger <BusinessEntityController> logger,
     ITransactionCoordinator transactionCoordinator,
     IBusinessEntityService businessEntityService,
     IApiBusinessEntityModelMapper businessEntityModelMapper
     )
     : base(settings,
            logger,
            transactionCoordinator,
            businessEntityService,
            businessEntityModelMapper)
 {
     this.BulkInsertLimit = 250;
     this.MaxLimit        = 1000;
     this.DefaultLimit    = 250;
 }
Esempio n. 6
0
        public void AutoFixture_ShouldBeAbleToAutoMock_DirectDependencies_WithNSubstitute(
            // Autofixture instanciates these for us
            [Frozen] IBusinessEntityService service,
            BusinessController sut,
            // this entity will have properties set with dummy values
            BusinessEntity expected)
        {
            // Arrange
            var entity = new BusinessEntity();

            service.Store(entity).Returns(expected.Id);
            service.Get(expected.Id).Returns(expected);

            // Act
            var actual = sut.Add(entity);

            // Assert
            actual.Should().Be(expected);
            service.Received(1).Store(entity);
            service.Received(1).Get(expected.Id);
        }
Esempio n. 7
0
 public CompanyController(ICompanyService companyService, IBusinessEntityService businessEntityService)
 {
     _companyService        = companyService;
     _businessEntityService = businessEntityService;
 }
 public BusinessController(IBusinessEntityService service)
 {
     _service = service;
 }