コード例 #1
0
        public void SetUp()
        {
            _wordRepository    = Substitute.For <IWordRepository>();
            _managerRepository = Substitute.For <IManagerRepository>();

            _modificationService = new ModificationService(_managerRepository, _wordRepository);
        }
コード例 #2
0
 public SprintController(
     IUnitOfWork unitOfWork,
     ISprintRepository sprintRepository,
     IMapper mapper,
     IModificationService modificationService) :
     base(unitOfWork, sprintRepository, mapper, modificationService)
 {
 }
コード例 #3
0
 public MarkController(IMarkService markService,
                       IModelService modelService,
                       IModificationService modificationService)
 {
     _markService         = markService;
     _modelService        = modelService;
     _modificationService = modificationService;
 }
コード例 #4
0
 public UserStoryController(
     IUnitOfWork unitOfWork,
     IUserStoryRepository userStoryRepository,
     IMapper mapper,
     IUserStoryService userStoryService,
     IModificationService modificationService) :
     base(unitOfWork, userStoryRepository, mapper, modificationService)
 {
     _userStoryService = userStoryService;
 }
コード例 #5
0
 public TaskController(
     IUnitOfWork unitOfWork,
     ITaskRepository repository,
     IMapper mapper,
     ITaskService taskService,
     IModificationService modificationService,
     ICurrentUserService currentUserService) : base(unitOfWork, repository, mapper, modificationService)
 {
     _taskService = taskService;
 }
コード例 #6
0
ファイル: CommentController.cs プロジェクト: sH3ep/TCP_Local
 public CommentController(IUnitOfWork unitOfWork,
                          ICommentRepository repository,
                          IMapper mapper,
                          ICommentService commentService,
                          IModificationService modificationService) : base(unitOfWork, repository, mapper, modificationService)
 {
     _commentService      = commentService;
     _modificationService = modificationService;
     _mapper     = mapper;
     _unitOfWork = unitOfWork;
 }
コード例 #7
0
ファイル: FeatureController.cs プロジェクト: sH3ep/TCP_Local
        public FeatureController(
            IUnitOfWork unitOfWork,
            IFeatureRepository FeatureRepository,
            IMapper mapper,
            IFeatureService featureService,
            IModificationService modificationService) :
            base(unitOfWork, FeatureRepository, mapper, modificationService)

        {
            _featureService = featureService;
        }
コード例 #8
0
 //private readonly IBrandService _brandService;
 public CatalogController(IProductService productService,
                          IModelService modelService,
                          IModificationService modificationService,
                          ICategoryService categoryService)
 {
     _productService  = productService;
     _categoryService = categoryService;
     //_brandService = brandService;
     _modelService        = modelService;
     _modificationService = modificationService;
 }
コード例 #9
0
 public ProjectController(
     IUnitOfWork unitOfWork,
     IProjectService projectService,
     IAuthRepository authRepository,
     IProjectRepository projectRepository,
     IMapper mapper,
     IOptions <AppSettings> appSettings,
     IAuthService authService,
     IRoleCheck roleCheck,
     IModificationService modificationService,
     ICurrentUserService currentUserService) :
     base(unitOfWork, projectRepository, mapper, modificationService)
 {
     _projectService     = projectService;
     _currentUserService = currentUserService;
     _unitOfWork         = unitOfWork;
     _authService        = authService;
     _appSettings        = appSettings.Value;
     _authRepository     = authRepository;
     _roleCheck          = roleCheck;
     _projectRepository  = projectRepository;
 }
コード例 #10
0
ファイル: CoreViewModel.cs プロジェクト: modulexcite/nvmsharp
        public CoreViewModel()
        {
            _currentAppMode = AppMode.None;
            _initResult = InitResultType.None;
            _userVars = new Dictionary<string, EnVar>();
            _systemVars = new Dictionary<string, EnVar>();
            _modificationMode = ModificationModeType.None;
            _modificationTitle = string.Empty;
            _modifiedKey = string.Empty;
            _modifiedValue = string.Empty;
            _validationMessage = string.Empty;
            _hasUserImportVariables = false;
            _hasSystemImportVariables = false;
            _hasUserExportVariables = false;
            _hasSystemExportVariables = false;
            _hasInitImportStatus = false;
            _hasImportConflicts = false;

            // Get the services
            _messageService = ServiceManager.Instance.GetService<IMessageService>();
            _modificationService = ServiceManager.Instance.GetService<IModificationService>();
            _fileService = ServiceManager.Instance.GetService<IFileService>();
            _progressService = ServiceManager.Instance.GetService<IProgressService>();

            // InitializeEnvironmentVariables the commands
            InitializeCommands();
        }
コード例 #11
0
 public ModificationController(IModificationService modificationService)
 {
     _modificationService = modificationService;
 }
コード例 #12
0
 public Extras(IModificationService modificationService, IUserService userService, IRequestService requestService)
 {
     _modificationService = modificationService;
     _userService         = userService;
     _requestService      = requestService;
 }
コード例 #13
0
 public DictionaryController(IModificationService modificationService, IUserService userService, IRequestService requestService)
 {
     _requestService      = requestService;
     _modificationService = modificationService;
     _userService         = userService;
 }
コード例 #14
0
 protected CrudController(IUnitOfWork unitOfWork, TRepository repository, IMapper mapper, IModificationService modificationService) : base(repository)
 {
     ModificationService = modificationService;
     UnitOfWork          = unitOfWork;
     Mapper = mapper;
 }