コード例 #1
0
 public UserService(IUserRepository userRepository, IWorkshopRepository workshopRepository, ITeamRepository teamRepository, 
     ICryptographerService cryptographerSerivce)
 {
     _userRepository = userRepository;
     _cryptographerSerivce = cryptographerSerivce;
     _teamRepository = teamRepository;
     _workshopRepository = workshopRepository;
 }
コード例 #2
0
 public HomeController(IUserService userService, IAuthenticationService authenticationService, IDocumentService documentService, 
     ITeamRepository teamRepository, IWorkshopRepository workshopRepository, IDocumentMapper documentMapper)
     : base(authenticationService)
 {
     _userService = userService;
     _documentMapper = documentMapper;
     _workshopRepository = workshopRepository;
     _teamRepository = teamRepository;
     _documentService = documentService;
     _authenticationService = authenticationService;
 }
コード例 #3
0
 public UserViewService(IUserRepository userRepository, IWorkshopRepository workshopRepository, ITeamRepository teamRepository,
     IUserValidator userValidator, IUserMapper userMapper, ICryptographerService cryptoService, IUserService userService)
 {
     _userRepository = userRepository;
     _userService = userService;
     _cryptoService = cryptoService;
     _userMapper = userMapper;
     _userValidator = userValidator;
     _workshopRepository = workshopRepository;
     _teamRepository = teamRepository;
 }
コード例 #4
0
 private void SetUpDependencies()
 {
     _userRepository = _administrationMockRepository.GetUserRepository();
     _workshopRepository = _administrationMockRepository.GetWorkshopRepository();
     _teamRepository = _administrationMockRepository.GetTeamRepository();
     _cryptographerService = _administrationMockRepository.GetCryptographerService();
     _userMapper = _administrationMockRepository.GetUserMapper();
     _userValidator = _administrationMockRepository.GetUserValidator(true);
     _workshopMapper = _administrationMockRepository.GetWokshopMapper();
     _teamMapper = _administrationMockRepository.GetTeamMapper();
     _teamValidator = _administrationMockRepository.GetTeamValidator(true);
     _workshopValidator = _administrationMockRepository.GetWorkshopValidator(true);
 }
コード例 #5
0
 public DeviceAppService(IDeviceRepository deviceRepository,
                         IRepository <DeviceType> deviceTypeRepository,
                         IGatewayRepository gatewayRepository,
                         IWorkshopRepository workshopRepository,
                         IFactoryRepository factoryRepository,
                         ICityRepository cityRepository,
                         IDeviceManager deviceManager,
                         IFieldRepository fieldRepository
                         )
 {
     _deviceRepository     = deviceRepository;
     _deviceTypeRepository = deviceTypeRepository;
     _gatewayRepository    = gatewayRepository;
     _workshopRepository   = workshopRepository;
     _factoryRepository    = factoryRepository;
     _cityRepository       = cityRepository;
     _deviceManager        = deviceManager;
     _fieldRepository      = fieldRepository;
 }
コード例 #6
0
 public WorkshopService(IWorkshopRepository workshopRepository)
 {
     this.workshopRepository = workshopRepository;
 }
コード例 #7
0
 /// <summary>
 /// Ctor.
 /// </summary>
 /// <param name="repository"><see cref="IWorkshopRepository"/>.</param>
 /// <param name="userInfo"><see cref="IActiveUserInfoService"/>.</param>
 public WorkshopService(IWorkshopRepository repository, IActiveUserInfoService userInfo)
 {
     _repository = Check.NotNull(repository, nameof(repository));
     _userInfo   = Check.NotNull(userInfo, nameof(userInfo));
 }
コード例 #8
0
 public WorkshopService(IWorkshopRepository repo)
 {
     this.repo = repo;
 }
コード例 #9
0
 public ProductsController(IWorkshopRepository repo)
 {
     _workshopRepository = repo;
 }
コード例 #10
0
 public WorkshopsController(IMembershipRepository membershipRepository, IWorkshopRepository workshopRepository)
 {
     _membershipRepository = membershipRepository;
     _workshopRepository = workshopRepository;
 }
コード例 #11
0
 public UserMapper(IWorkshopRepository workshopRepository, ICryptographerService cryptoService)
 {
     _workshopRepository = workshopRepository;
     _cryptoService = cryptoService;
 }
コード例 #12
0
 public SuppliersController(IWorkshopRepository repository)
 {
     _workshopRepository = repository;
 }
コード例 #13
0
 public WorkshopManager(IWorkshopRepository workshopRepositories)
 {
     _workshopRepositories = workshopRepositories;
 }
コード例 #14
0
 public HomeController(IWorkshopRepository workshopRepository)
 {
     _workshopRepository = workshopRepository;
 }
コード例 #15
0
 public HomeController()
 {
     _workshopRepository = new WorkshopRepository();
 }
コード例 #16
0
 public WorkshopValidator(IWorkshopRepository workshopRepository)
 {
     this._workshopRepository = workshopRepository;
 }
コード例 #17
0
 public MaterialsController(IWorkshopRepository repo)
 {
     _workshopRepository = repo;
 }