public TodoController GetController(ITodoRepository repo) { var controller = new TodoController(); controller.TodoItems = repo; return controller; }
public HomeController(IUnitOfWork unitOfWork, ITestRepository testRepository, ITodoRepository repository, ITestService testService) { _repository = repository; _testService = testService; _testRepository = testRepository; _unitOfWork = unitOfWork; }
public TodoService(ITodoRepository repository) { if (repository == null) { throw new ArgumentNullException("repository"); } _repository = repository; }
public TodoController(ITodoRepository todoRepository) { if (todoRepository == null) { throw new ArgumentNullException("todoRepository"); } _todoRepository = todoRepository; }
public EditEntryViewModel( TodoViewModel entry, ITodoRepository todoRepo = null ) { Entry = entry; TodoRepo = todoRepo ?? new TodoRepository( App.Session ); Summary = entry.Model.Summary; Details = entry.Model.Details; Validate( nameof( Summary ) ).Check( () => !string.IsNullOrWhiteSpace( Summary ) ).Message( Strings.EntryNeedsSummary ); }
public AddEntryViewModel( IEnumerable<TagViewModel> tagList, ProjectViewModel currentProject, ITodoRepository todoRepo = null, IMessenger messenger = null ) : base(null, null, messenger) { CurrentProject = currentProject; TodoRepo = todoRepo ?? new TodoRepository( App.Session ); Tags = tagList.Select( t => new TagEntry( t ) ).ToList(); Validate( nameof( Summary ) ).Check( () => !string.IsNullOrWhiteSpace( Summary ) ).Message( Strings.EntryNeedsSummary ); Reset(); }
public ProjectViewModel( Project project ) { Model = project; TodoRepo = new TodoRepository( App.Session ); Todos = new ObservableCollection<TodoViewModel>( Model.Todos.Select( t => new TodoViewModel( t ) ) ); Todos.CollectionChanged += Todos_CollectionChanged; foreach( var todo in Todos ) { todo.DeleteRequested += Todo_DeleteRequested; todo.SaveRequested += Todo_SaveRequested; } }
public TodoController(ITodoRepository todoRepository, ILogger <TodoController> logger) { _todoRepository = todoRepository; _logger = logger; }
public TodoPage() { InitializeComponent(); _todoRepository = new TodoRepository(); BindingContext = new Todo(); }
public TodoItemsControllers(ITodoRepository todoRepository) { repository = todoRepository ?? throw new ArgumentNullException(nameof(todoRepository)); }
public TodoService(ITodoRepository todoRepository) { _todoRepository = todoRepository; }
public TodoController(ITodoRepository todoRepository) { _todoRepository = todoRepository; }
/// <summary> /// Initializes a new instance of TaskManager /// </summary> /// <param name="repository"></param> public TaskManager(ITodoRepository repository) { this.repository = repository; }
public TodoFinishCommandHandler(ServiceInjectionFixture fixture) { this._context = fixture.ServiceProvider.GetService <TodoDbContext>(); this.unitOfWork = fixture.ServiceProvider.GetService <IUnitOfWork>(); this.todoRepository = fixture.ServiceProvider.GetService <ITodoRepository>(); }
public CreateCommentUseCase(ICommentRepository repository, ITodoRepository todoItemRepository) { _repository = repository; _todoItemRepository = todoItemRepository; }
public TodoController(ITodoRepository todos) { _todos = todos; }
public TodoController(ITodoRepository todoRepository, ILogger<TodoController> logger) { _todoRepository = todoRepository; _logger = logger; }
public TodoController(ITodoRepository todoRepository, IUserRepository userRepository) { this._todoRepository = todoRepository; this._userRepository = userRepository; }
public UserDependency( ITodoFactory todoFactory, ITodoRepository todoRepository) { TodoFactory = todoFactory; TodoRepository = todoRepository; }
public TodoController(ITodoRepository todoRepository) { _todoRepository = todoRepository; }
public ProviderStateMiddleware(RequestDelegate next, ITodoRepository todoRepository) { _next = next; _todoRepository = todoRepository; }
public TodosController(ITodoRepository repository) { _repository = repository; }
public IEnumerable <TodoItem> GetDoneForToday([FromServices] ITodoRepository repository) { var user = User.Claims.FirstOrDefault(x => x.Type == "user_id")?.Value; return(repository.GetAllByPeriod(user, _today, true)); }
public TodoService(ITodoRepository repository) { _repository = repository; }
public IEnumerable <TodoItem> GetAllUndone([FromServices] ITodoRepository repository) { var user = User.Claims.FirstOrDefault(x => x.Type == "user_id")?.Value; return(repository.GetAllDone(user)); }
public void Initialize() { this.repository = RepositoryFactory.CreateTodoRepository(); }
public IEnumerable <TodoItem> GetAllUndoneForTomorrow([FromServices] ITodoRepository repository) { var user = User.Claims.FirstOrDefault(x => x.Type == "user_id")?.Value; return(repository.GetAllByPeriod(user, _today.AddDays(1), false)); }
public TodoExistsFilter(ITodoRepository todoRepository, IStringLocalizer <SharedResources> localizer) => (_todoRepository, _localizer) = (todoRepository, localizer);
public TodoController(UserManager <ApplicationUser> userManager = null, ITodoRepository repository = null) { _repository = repository; _userManager = userManager; }
public HandlerMarkAsDone(ITodoRepository todoRepository) { _todoRepository = todoRepository; }
TodoListsController(ITodoRepository repository) { _repository = repository; }
public TodoController(ITodoRepository todoItems) { TodoItems = todoItems; }
public ListController(IMapper mapper, LinkGenerator generator, ITodoRepository todo) { this.todo = todo; this.mapper = mapper; this.gene = generator; }
public TodoBotFunction(ITodoRepository todoRepository, ILineTokenService lineTokenService) { this.todoRepository = todoRepository; this.lineTokenService = lineTokenService; }
public TodoService(ITodoRepository repo) { this.repo = repo; }
public TodoService(ApplicationDbContext context, ITodoRepository todoRepository, UserManager <ApplicationUser> userManager) { _context = context; _todoRepository = todoRepository; _userManager = userManager; }
public TodoController(ITodoRepository repository, ITodoCache cache, ILogger <TodoController> logger) { this.repository = repository; this.cache = cache; _logger = logger; }
public TodoHandler(ITodoRepository repository) { _repository = repository; }
/// <summary> /// Default constructor /// </summary> /// <param name="logger">logger</param> /// <param name="mapper">Automapper</param> /// <param name="sieveProcessor">Query, sorting, pating processor</param> /// <param name="todoRepository">Todo Repo helper</param> public TodoController(ILogger <TodoController> logger, IMapper mapper, SieveProcessor sieveProcessor, ITodoRepository todoRepository) { _logger = logger; _mapper = mapper; _sieveProcessor = sieveProcessor; _todoRepository = todoRepository; logger.LogInformation("TodoController-> DI completed successfuly!"); }
public TodoController(ITodoRepository repository, UserManager <ApplicationUser> userManager) { _repository = repository; _userManager = userManager; }
public TodosController() { _repository = new TodoRepositoryJson(@"D:\temp\Todos.json"); }
public TodosController(ITodoRepository repo) { _repo = repo; }
public TodoService(ITodoRepository todoRepository) { _todoRepository = todoRepository; }
public TodoController(ITodoRepository todoItems) { TodoItems = todoItems; }
public TodoController(ITodoRepository repository) { _repository = repository; }
public TodoService(ITodoRepository todoRepo) { _todoRepo = todoRepo; _loggingService = new LoggingService(); }
/// <summary> /// Initializes a new instance of the <see cref="HomeController"/> class. /// </summary> /// <param name="todoRepository">The to-do repository.</param> public HomeController(ITodoRepository todoRepository) { this.todoRepository = todoRepository; }
public IndexModel(ITodoRepository repo, ILogger <IndexModel> logger) { _logger = logger; this.repo = repo ?? throw new ArgumentNullException(nameof(repo)); }
/// <summary> /// Constructor /// </summary> /// <param name="repository">ITodoRepository object</param> public TodoService(ITodoRepository repository) { this.repository = repository; }
public void Initialize() { _repository = new TodoRepository(); }
public TodoController(ITodoRepository repository, IMapper mapper) { _repository = repository; _mapper = mapper; }