public ToDoListsController( IToDoListsService toDoListsService, UserManager <ApplicationUser> userManager) { this.toDoListsService = toDoListsService; this.userManager = userManager; }
public ToDoListsControllerTests() { this.optionsBuilder = new DbContextOptionsBuilder <ApplicationDbContext>() .UseInMemoryDatabase("toDoListsDatabase"); this.db = new ApplicationDbContext(this.optionsBuilder.Options); this.toDoListsService = new ToDoListsService(this.db); this.userManager = new FakeUserManager(); this.controller = new ToDoListsController(this.toDoListsService, this.userManager); }
public ChangeToDoTaskStatusCommandHandler(IToDoListsService toDoListsService) { _toDoListsService = toDoListsService; }
public UpdateToDoListCommandHandler(IToDoListsService toDoListsService, IMapper mapper) { _toDoListsService = toDoListsService; _mapper = mapper; }
public ToDoListExecutionTimeWatcher(IToDoListsService service) { _service = service ?? throw new ArgumentNullException(nameof(service)); }
public ListsViewModel(IToDoListsService listsService) { _listsService = listsService; }
public CreateToDoTaskCommandHandler(IToDoListsService toDoListsService, IMapper mapper) { _toDoListsService = toDoListsService; _mapper = mapper; }