예제 #1
0
 public CodeService(ICodeRepository codeRepository, ICenterRepository centerRepository, IUnitOfWork uow
                    , IEmployeeRepository employeeRepository, ICustomerRepository customerRepository)
 {
     _codeRepository     = codeRepository;
     _uow                = uow;
     _centerRepository   = centerRepository;
     _employeeRepository = employeeRepository;
     _customerRepository = customerRepository;
 }
 public NetworkCenterPriorityService(IEmployeeRepository employeeRepository, INetworkRepository networkRepository,
                                     ICenterRepository centerRepository, IUnitOfWork uow, INetworkCenterPriorityRepository networkCenterPriorityRepository)
 {
     _employeeRepository = employeeRepository;
     _networkRepository  = networkRepository;
     _centerRepository   = centerRepository;
     _uow = uow;
     _networkCenterPriorityRepository = networkCenterPriorityRepository;
 }
예제 #3
0
 public NetworkCenterService(INetworkCenterRepository networkCenterRepository,
                             ICenterRepository centerRepository, IUnitOfWork uow,
                             INetworkRepository networkRepository, IEmployeeRepository employeeRepository)
     : this(networkCenterRepository, uow)
 {
     _centerRepository   = centerRepository;
     _networkRepository  = networkRepository;
     _employeeRepository = employeeRepository;
 }
예제 #4
0
 public NetworkService(INetworkRepository networkRepository, IUnitOfWork uow
                       , IEmployeeRepository employeeRepository
                       , ICenterRepository centerRepository
                       , INetworkCenterService networkCenterService)
 {
     _networkRepository = networkRepository;
     _uow = uow;
     _employeeRepository   = employeeRepository;
     _centerRepository     = centerRepository;
     _networkCenterService = networkCenterService;
 }
예제 #5
0
 public CenterService(ICenterRepository centerRepo,
                      IUserRepository userRepo,
                      IContactRepository centerContactRepo,
                      ICenterTransRepository centerTransRepo)
 {
     Guard.NotNull(centerRepo, nameof(centerRepo));
     Guard.NotNull(userRepo, nameof(userRepo));
     Guard.NotNull(centerContactRepo, nameof(centerContactRepo));
     Guard.NotNull(centerTransRepo, nameof(centerTransRepo));
     _centerRepo        = centerRepo;
     _userRepo          = userRepo;
     _centerContactRepo = centerContactRepo;
     _centerTransRepo   = centerTransRepo;
 }
예제 #6
0
 public CenterService(ICenterRepository centerRepository, ICodeRepository codeRepository
                      , INetworkCenterRepository networkCenterRepository, IUnitOfWork uow
                      , IEmployeeRepository employeeRepository, INetworkCenterService networkCenterService
                      , INetworkRepository networkRepository, ISpecialNumberRepository specialNumberRepository)
 {
     _centerRepository        = centerRepository;
     _codeRepository          = codeRepository;
     _networkCenterRepository = networkCenterRepository;
     _uow = uow;
     _employeeRepository      = employeeRepository;
     _networkCenterService    = networkCenterService;
     _networkRepository       = networkRepository;
     _specialNumberRepository = specialNumberRepository;
 }
예제 #7
0
 // ninject depedency injection
 public DbRepositoryService(IEventRepository eventRepo, ICenterRepository centerRepo,
     ILibraryRepository libraryRepo, ISpecialEventRepository specialEventRepo,
     IPrimaryGuardianBorrowsRepository primaryGuardianBorrowsRepo, ISignInRepository signInRepo,
     IPrimaryGuardianRepository primaryGuardianRepo, ISecondaryGuardianRepository secondaryGuardianRepo,
     IChildRepository childRepo, ICenterReferralRepo centerReferralRepo, ICenterResourcesRepository centerResourcesRepo)
 {
     this.eventRepo = eventRepo;
     this.centerRepo = centerRepo;
     this.libraryRepo = libraryRepo;
     this.specialEventRepo = specialEventRepo;
     this.primaryGuardianBorrowsRepo = primaryGuardianBorrowsRepo;
     this.signInRepo = signInRepo;
     this.primaryGuardianRepo = primaryGuardianRepo;
     this.secondaryGuardianRepo = secondaryGuardianRepo;
     this.childRepo = childRepo;
     this.centerReferralRepo = centerReferralRepo;
     this.centerResourcesRepo = centerResourcesRepo;
 }
 public CentersController(
     ICenterRepository centerRepository,
     IEventRepository eventRepository,
     IUserRepository userRepository,
     IMapper mapper,
     IPropertyCheckerService propertyCheckerService,
     IPropertyMappingService propertyMappingService)
 {
     _centerRepository = centerRepository ??
                         throw new ArgumentNullException(nameof(centerRepository));
     _eventRepository = eventRepository ??
                        throw new ArgumentNullException(nameof(eventRepository));
     _userRepository = userRepository ??
                       throw new ArgumentNullException(nameof(userRepository));
     _mapper = mapper ??
               throw new ArgumentNullException(nameof(mapper));
     _propertyMappingService = propertyMappingService ??
                               throw new ArgumentNullException(nameof(propertyMappingService));
     _propertyCheckerService = propertyCheckerService ??
                               throw new ArgumentNullException(nameof(propertyCheckerService));
 }
 //public CenterManager() : base(new CenterRepository())
 //{
 //    _centerRepository = new CenterRepository();
 //}
 public CenterManager(ICenterRepository repository) : base(repository)
 {
     _centerRepository = repository;
 }
예제 #10
0
 public CenterService(ICenterRepository centerRepository)
 {
     _centerRepository = centerRepository;
 }