Esempio n. 1
0
        public ActionResult <TodoItemViewModel> Post([FromBody] string value)
        {
            var request = new Core.Boundaries.Todo.Request(value);

            _todoUseCase.Execute(request);
            return(_todoPresenter.BuildResponse(this));
        }
Esempio n. 2
0
        public void GivenNullTitle_ThrowsException()
        {
            var request = new Core.Boundaries.Todo.Request(null);
            var todo    = new Todo(null, null, null);

            Assert.Throws <Exception>(() => todo.Execute(request));
        }
Esempio n. 3
0
        public void Execute(TodoCommand todoCommand)
        {
            var request = new Core.Boundaries.Todo.Request(todoCommand.Title);

            todoUseCase.Execute(request);
        }