コード例 #1
0
 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;
 }
コード例 #2
0
 /// <summary>
 /// Creates a new instance with the given ILocationService.
 /// </summary>
 /// <param name="locationService">The location serivce.</param>
 /// <param name="userProvider">The user provider.</param>
 /// <param name="addressTypeService">The address type service.</param>
 public AddressesController(ILocationService locationService, IUserProvider userProvider, IAddressTypeService addressTypeService)
 {
     Contract.Requires(locationService != null, "The location service must not be null.");
     Contract.Requires(userProvider != null, "The user provider must not be null.");
     Contract.Requires(addressTypeService != null, "The address type service must not be null.");
     this.locationService    = locationService;
     this.userProvider       = userProvider;
     this.addressTypeService = addressTypeService;
 }
コード例 #3
0
 public AbstractAddressTypeController(
     ApiSettings settings,
     ILogger <AbstractAddressTypeController> logger,
     ITransactionCoordinator transactionCoordinator,
     IAddressTypeService addressTypeService,
     IApiAddressTypeModelMapper addressTypeModelMapper
     )
     : base(settings, logger, transactionCoordinator)
 {
     this.AddressTypeService     = addressTypeService;
     this.AddressTypeModelMapper = addressTypeModelMapper;
 }
コード例 #4
0
 public AddressTypeController(
     ApiSettings settings,
     ILogger <AddressTypeController> logger,
     ITransactionCoordinator transactionCoordinator,
     IAddressTypeService addressTypeService,
     IApiAddressTypeModelMapper addressTypeModelMapper
     )
     : base(settings,
            logger,
            transactionCoordinator,
            addressTypeService,
            addressTypeModelMapper)
 {
     this.BulkInsertLimit = 250;
     this.MaxLimit        = 1000;
     this.DefaultLimit    = 250;
 }
コード例 #5
0
 public AddressTypeController(IAddressTypeService addressTypeService)
 {
     _addressTypeService = addressTypeService;
 }
コード例 #6
0
 public AddressTypeController(IAddressTypeService addressType, ILoggerManager logger)
 {
     _addressTypeService = addressType;
     _loggerManager      = logger;
 }
コード例 #7
0
 public AddressTypeController(IAddressTypeService addressTypeService, IAppLogService appLogService, IUserService userService)
 {
     _addressTypeService = addressTypeService;
     _appLogService      = appLogService;
     _userService        = userService;
 }