Ejemplo n.º 1
0
 public ToDoListsController(
     IToDoListsService toDoListsService,
     UserManager <ApplicationUser> userManager)
 {
     this.toDoListsService = toDoListsService;
     this.userManager      = userManager;
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 public ChangeToDoTaskStatusCommandHandler(IToDoListsService toDoListsService)
 {
     _toDoListsService = toDoListsService;
 }
Ejemplo n.º 4
0
 public UpdateToDoListCommandHandler(IToDoListsService toDoListsService,
                                     IMapper mapper)
 {
     _toDoListsService = toDoListsService;
     _mapper           = mapper;
 }
Ejemplo n.º 5
0
 public ToDoListExecutionTimeWatcher(IToDoListsService service)
 {
     _service = service ?? throw new ArgumentNullException(nameof(service));
 }
Ejemplo n.º 6
0
 public ListsViewModel(IToDoListsService listsService)
 {
     _listsService = listsService;
 }
Ejemplo n.º 7
0
 public CreateToDoTaskCommandHandler(IToDoListsService toDoListsService,
                                     IMapper mapper)
 {
     _toDoListsService = toDoListsService;
     _mapper           = mapper;
 }