public async Task <IActionResult> Create(CreateToDoItemRequest request) { var result = await Send <CreateToDoItemCommand>(request); return(result.ToCreatedResult("ToDo", nameof(Get))); }
public void Given_I_have_composed_a_valid_new_ToDo() { _request = Builder <CreateToDoItemRequest> .CreateNew(); }