Exemple #1
0
 public HomeController(ICompanyRepository companyRepository, ITaskRepository taskRepository, IBoardRepository boardRepository, UserManager <ApplicationUser> userManager)
 {
     _companyRepository = companyRepository;
     _taskRepository    = taskRepository;
     _boardRepository   = boardRepository;
     _userManager       = userManager;
 }
        public void SetUp()
        {
            _commandDispatcher = Substitute.For<ICommandDispatcher>();
            _boardRepository = Substitute.For<IBoardRepository>();

            _controller = new BoardController(_commandDispatcher, _boardRepository);
        }
 public BoardService(
     IBoardRepository boardRepo,
     ILogger <BoardService> logger)
 {
     _boardRepo = boardRepo;
     _logger    = logger;
 }
Exemple #4
0
 public ProjectService(
     IProjectRepository projectRepository,
     IBoardRepository boardRepository)
 {
     _projectRepository = projectRepository;
     _boardRepository = boardRepository;
 }
 public BoardController()
 {
     _boardRepository = new BoardRepository();
     _columnRepository = new ColumnRepository();
     _colorRepository = new ColorRepository();
     _taskRepository = new TaskRepository();
 }
Exemple #6
0
 public MoveNoteToLaneCommandHandler(IBoardRepository boardRepository, INoteRepository noteRepository,
                                     ILaneRepository laneRepository)
 {
     _boardRepository = boardRepository;
     _noteRepository  = noteRepository;
     _laneRepository  = laneRepository;
 }
Exemple #7
0
 public BOARDS(
     IBoardRepository boardRepository,
     ITopicRepository topicRepository)
 {
     _boardRepository = boardRepository;
     _topicRepository = topicRepository;
 }
Exemple #8
0
 public BoardController()
 {
     _boardRepository  = new BoardRepository();
     _columnRepository = new ColumnRepository();
     _colorRepository  = new ColorRepository();
     _taskRepository   = new TaskRepository();
 }
Exemple #9
0
 // Constructor
 public WorktaskController(IWorktaskRepository worktaskRepository, ICategoryRepository catRepository, IAccountRepository accRepository, IBoardRepository boardRepository) : base()
 {
     this.repository      = worktaskRepository;
     this.catRepository   = catRepository;
     this.accRepository   = accRepository;
     this.boardRepository = boardRepository;
 }
Exemple #10
0
 public BOARDS(
     IBoardRepository boardRepository,
     ITopicRepository topicRepository)
 {
     _boardRepository = boardRepository;
     _topicRepository = topicRepository;
 }
Exemple #11
0
 public GameService(IPlayerService playerService, IBoardCoordinatesRepository boardCoordinatesRepository, IBoardRepository boardRepository, IPlayerRepository playerRepository)
 {
     _playerService = playerService;
     _boardCoordinatesRepository = boardCoordinatesRepository;
     _boardRepository            = boardRepository;
     _playerRepository           = playerRepository;
 }
 public BoardService(IBoardRepository boardRepository, IUnitOfWork unitOfWork)
 {
     _boardRepository = boardRepository ??
                        throw new ArgumentNullException(nameof(boardRepository));
     _untUnitOfWork = unitOfWork ??
                      throw new ArgumentNullException(nameof(unitOfWork));
 }
        public BoardRepositoryShould()
        {
            var cf = new ForumContext(new DbContextOptionsBuilder <ForumContext>()
                                      .UseSqlite("Data Source=../ShitForum.db").Options);

            cf.SeedData().Wait();
            this.boards = new BoardRepository(cf);
        }
 public BoardController(IHubContext<BoardHub> hubcontext,
                        IWebHostEnvironment environment,
                        IBoardRepository boardRepository)
 {
     _hubContext = hubcontext;
     _hostEnvironment = environment;
     _boardRepository = boardRepository;
 }
Exemple #15
0
 public PlayerService(
     IBoardRepository boardRepo,
     ILogger <PlayerService> logger)
 {
     _boardRepo = boardRepo;
     _logger    = logger;
     _rnd       = new Random();
 }
Exemple #16
0
 public BoardController(IBoardRepository boardRepository,
                        IPostRepository postRepository,
                        IThreadRepository threadRepository)
 {
     _boardRepository  = boardRepository;
     _postRepository   = postRepository;
     _threadRepository = threadRepository;
 }
Exemple #17
0
 // Constructor
 public KanbanController(IBoardRepository boardRepository, IWorktaskRepository worktaskRepository, ICategoryRepository catRepository, IAccountRepository accRepository, IWorkflowRepository wfRepository) : base()
 {
     this.wRepository     = worktaskRepository;
     this.catRepository   = catRepository;
     this.accRepository   = accRepository;
     this.boardRepository = boardRepository;
     this.wfRepository    = wfRepository;
 }
 public BoardAppService(IBoardRepository boardRepository,
                        IMapper mapper,
                        IMediatorHandler mediatorHandler)
 {
     _boardRepository = boardRepository;
     _mapper          = mapper;
     _mediatorHandler = mediatorHandler;
 }
Exemple #19
0
 public BoardServices(ITagRepository tagRepository, ITaskRepository taskRepository, IUserRepository userRepository, IBoardRepository boardRepository, ITeamRepository teamRepository)
 {
     _tagRepository   = tagRepository;
     _taskRepository  = taskRepository;
     _userRepository  = userRepository;
     _boardRepository = boardRepository;
     _teamRepository  = teamRepository;
 }
        static BoardRepositoryLocator()
        {
            string dataSource = Configuration.GetDataSource(DataSources.BoardsDataSourceName, Properties.Settings.Default.BoardsDataSource);
            if (!_setRepo.ContainsKey(dataSource)) throw new InvalidDataSourceException();

            _setRepo[dataSource].Invoke();
            _repo = RepositoryFactory.Make<IBoardRepository>();
        }
Exemple #21
0
 public PostService(IPostRepository postRepository, IFileRepository fileRepository, IThreadRepository threadRepository, IBannedIpRepository bannedIpRepository, IBoardRepository boardRepository)
 {
     this.postRepository     = postRepository;
     this.fileRepository     = fileRepository;
     this.threadRepository   = threadRepository;
     this.bannedIpRepository = bannedIpRepository;
     this.boardRepository    = boardRepository;
 }
Exemple #22
0
 public BoardService(IBoardRepository boardRepository, IMapper <Board, BoardModel>
                     boardToBoardModelMapper, IMapper <List <Board>,
                                                       List <BoardTask> > BoardToBoardtaskMapper)
 {
     _boardRepository         = boardRepository;
     _boardToBoardModelMapper = boardToBoardModelMapper;
     _boardToBoardtaskMapper  = BoardToBoardtaskMapper;
 }
Exemple #23
0
        public Board(int wareId, IBoardRepository br)
        {
            Board boardToLoad = br.LoadBoard(wareId);

            WareId   = boardToLoad.WareId;
            Length   = boardToLoad.Length;
            Width    = boardToLoad.Width;
            Quantity = 1;
        }
 public BoardService(IBoardRepository boardRepository)
 {
     this.boardRepository = boardRepository;
     boardList            = new Dictionary <int, IEnumerable <SelectListItem> >();
     if (_instance == null)
     {
         _instance = this;
     }
 }
Exemple #25
0
        static Program()
        {
            AppDbContextFactory factory = new AppDbContextFactory();

            _appContext        = factory.CreateDbContext(null);
            _boardRepository   = new BoardRepository(_appContext);
            _postRepository    = new PostRepository(_appContext);
            _commentRepository = new CommentRepository(_appContext);
        }
Exemple #26
0
 public BoardsController(IBoardRepository boardRepository, ICompanyRepository companyRepository, ITaskRepository taskRepository, ILogger <BoardsController> logger,
                         UserManager <ApplicationUser> userManager)
 {
     _boardRepository   = boardRepository;
     _companyRepository = companyRepository;
     _taskRepository    = taskRepository;
     _logger            = logger;
     _userManager       = userManager;
 }
Exemple #27
0
 public TaskManagerDomain(
     IBoardRepository boardRepository,
     ISectionRepository sectionRepository,
     ITaskRepository taskRepository)
 {
     this.boardRepository   = boardRepository;
     this.sectionRepository = sectionRepository;
     this.taskRepository    = taskRepository;
 }
Exemple #28
0
 public BoardService(IBoardRepository boardRepository, IUserBoardRepository userBoardRepository, UserManager <User> userManager, IMapper mapper, IObfuscator obfuscator, ICardRepository cardRepository)
 {
     _boardRepository     = boardRepository;
     _userBoardRepository = userBoardRepository;
     _userManager         = userManager;
     _mapper         = mapper;
     _obfuscator     = obfuscator;
     _cardRepository = cardRepository;
 }
Exemple #29
0
 public KanbanService(IBoardRepository boardRepository, IAccountRepository accRepository)
 {
     this.boardRepository = boardRepository;
     this.accRepository   = accRepository;
     if (_instance == null)
     {
         _instance = this;
     }
 }
 public BoardsController(
     IBoardRepository boardRepository,
     IDateTimeProvider dateTimeProvider,
     IBoardMemberRepository memberRepository)
 {
     _boardRepository  = boardRepository;
     _dateTimeProvider = dateTimeProvider;
     _memberRepository = memberRepository;
 }
Exemple #31
0
 public TOPIC(
     IReplyRepository replyRepository,
     ITopicRepository topicRepository,
     IBoardRepository boardRepository
 )
 {
     _replyRepository = replyRepository;
     _topicRepository = topicRepository;
     _boardRepository = boardRepository;
 }
Exemple #32
0
 public BOARD(
     IBoardRepository boardRepository,
     ITopicRepository topicRepository,
     IReplyRepository replyRepository
     )
 {
     _boardRepository = boardRepository;
     _topicRepository = topicRepository;
     _replyRepository = replyRepository;
 }
Exemple #33
0
 public BOARD(
     IBoardRepository boardRepository,
     ITopicRepository topicRepository,
     IReplyRepository replyRepository
 )
 {
     _boardRepository = boardRepository;
     _topicRepository = topicRepository;
     _replyRepository = replyRepository;
 }
Exemple #34
0
 public AdminController(RoleManager <IdentityRole> rolesManager,
                        UserManager <IdentityUser> usersManager,
                        IBoardRepository boardRepository,
                        IThreadRepository threadRepository)
 {
     this.rolesManager      = rolesManager;
     this.usersManager      = usersManager;
     this._boardRepository  = boardRepository;
     this._threadRepository = threadRepository;
 }
Exemple #35
0
 public BoardController(IBoardRepository boardRepo,
                        IUserRepository userRepo,
                        IUsersBoardsRepository userBoardsRepo,
                        IColumnRepository columnRepo)
 {
     _boardRepo       = boardRepo;
     _userRepo        = userRepo;
     _usersBoardsRepo = userBoardsRepo;
     _columnRepo      = columnRepo;
 }
Exemple #36
0
 public TOPIC(
     IReplyRepository replyRepository,
     ITopicRepository topicRepository,
     IBoardRepository boardRepository
     )
 {
     _replyRepository = replyRepository;
     _topicRepository = topicRepository;
     _boardRepository = boardRepository;
 }
 public HomeController(
     IUserRepository userRepository,
     ICategoryRepository categoryRepository,
     ITaskRepository taskRepository,
     IBoardRepository boardRepository,
     IReminderRepository reminderRepository)
 {
     _userRepository = userRepository;
     _categoryRepository = categoryRepository;
     _taskRepository = taskRepository;
     _boardRepository = boardRepository;
     _reminderRepository = reminderRepository;
 }
 public HAVProfileService(IValidationDictionary aValidationDictionary, 
                          IUserRetrievalService<User> aUserRetrievalService, 
                          IFriendService<User, Friend> aFriendService, 
                          IPhotoAlbumService<User, PhotoAlbum, Photo, Friend> aPhotoAlbumService, 
                          IHAVProfileRepository aRepository,
                          IBoardRepository<User, Board, BoardReply> aBoardRepository,
                          IProfileQuestionService aProfileQuestionService)
 {
     theValidationDictionary = aValidationDictionary;
     theUserRetrievalService = aUserRetrievalService;
     theFriendService = aFriendService;
     theRepository = aRepository;
     theBoardRepository = aBoardRepository;
     thePhotoAlbumService = aPhotoAlbumService;
     theProfileQuestionService = aProfileQuestionService;
 }
        public BoardManager(
            IBoardRepository boardRepository, 
            ICardManager cardManager,
            IUserBoardShareRepository userBoardShareRepository, 
            IBoardUserShareRepository boardUserShareRepository, 
            IUserManager userManager,
            INotificationManager notificationManager)
        {
            _cardManager = cardManager;
            _userManager = userManager;
            _notificationManager = notificationManager;
            _boardRepository = boardRepository;
            _boardRepository.CreateIfNotExist();
            _boardUserShareRepository = boardUserShareRepository;
            _boardUserShareRepository.CreateIfNotExist();

            _userBoardShareRepository = userBoardShareRepository;
            _userBoardShareRepository.CreateIfNotExist();
        }
Exemple #40
0
 /// <summary>
 /// Constructs the Note service using Structure Map to inject the required repositories
 /// </summary>
 /// <param name="noteRepository">The SM Injected note repository.</param>
 /// <param name="boardRepository">The SM INjected board repository.</param>
 public NoteService(INoteRepository noteRepository, IBoardRepository boardRepository)
 {
     _noteRepository = noteRepository;
     _boardRepository = boardRepository;
 }
Exemple #41
0
 public BoardService(IBoardRepository BoardRepository)
 {
     this._BoardRepository = BoardRepository;
 }
 public BoardController(ICommandDispatcher commandDispatcher, IBoardRepository boardRepository)
 {
     _commandDispatcher = commandDispatcher;
     _boardRepository = boardRepository;
 }
 public void SetUp()
 {
     _repository = Substitute.For<IBoardRepository>();
     _handler = new PersistentStoreCommandHandler(_repository);
 }
        public BoardViewModel(IBoardRepository repository)
        {
            this.repository = repository;

            Cells = new ObservableCollection<CellViewModel>();
            for (int row = 0; row < 3; ++row)
            {
                for (int col = 0; col < 3; ++col)
                {
                    Cells.Add(new CellViewModel(this, row, col));
                }
            }

            LoginCommand = new RelayCommand(async () =>
            {
                await repository.Login("user");
                BoardStatus = Status.NotDone;
                RaiseCanExecuteChanged();
            });
        }
 public HomeController()
 {
     _boardRepository = new BoardRepository();
     _userRerpository = new UserRepository();
 }
Exemple #46
0
 public BoardsController(IBoardRepository boardRepository)
 {
     Check.Require(boardRepository != null, "_boardRepository may not be null");
     this._boardRepository = boardRepository;
 }