Ejemplo n.º 1
0
        public async Task HandleFunctionTest()
        {
            FakeData.InsertFakeData(this._context, 3);
            var request = new TodoFinished()
            {
                Id = 2
            };


            FinishTodoHandler handler =
                new FinishTodoHandler(this.unitOfWork, this.todoRepository);
            var result = await handler.Handle(request);


            Assert.Equal(ApplicationServiceStatus.Ok, result.Status);
        }
Ejemplo n.º 2
0
 public async Task <IActionResult> Put(TodoFinished request)
 {
     return(await Edit <TodoFinished>(request));
 }