public async Task CreateTaskCommand_Execute_Success()
        {
            var todoTask = _fixture.Create <CreateTodoItemDto>();

            _taskRepositoryMock.AddTask(Arg.Any <TodoItem>()).Returns(Task.FromResult(1));

            var result = await _createTaskCommand.Execute(todoTask);

            result.IsSuccess().Should().BeTrue();
            result.Data.Id.Should().BeInRange(long.MinValue, long.MaxValue);
        }
        public async Task <IActionResult> CreateTodo(CreateTodoItemDto todoItem)
        {
            var result = await _createTaskCommand.Execute(todoItem);

            return(OkOrFailure(result, HttpStatusCode.Created));
        }