public async Task WhenTheUserDeletesAnExistingItem() { await AppHooks.SendAsync(new DeleteTodoItemCommand { Id = _itemId }); }
public async Task WhenTheUserDeletesNotExistingList() { _listId = _listCreationTask == null ? 0 : (await _listCreationTask); _listDeletionAction = async() => await AppHooks.SendAsync(new DeleteTodoListCommand { Id = _listId }); }
public async Task WhenTheUserDeletesAnExistingList() { _listId = await _listCreationTask; await AppHooks.SendAsync(new DeleteTodoListCommand { Id = _listId }); }
public void WhenTheUserCreatesANewListWithName(string listTitle) { _createTodoListCommand = new CreateTodoListCommand { Title = listTitle }; _listCreationTask = AppHooks.SendAsync(_createTodoListCommand); }
public async Task WhenTheUserUpdatesAnExistingItemWithTheName(string p0) { _updateTodoItemCommand = new UpdateTodoItemCommand { Id = _itemId, Title = "Updated Item Title" }; await AppHooks.SendAsync(_updateTodoItemCommand); }
public async Task WhenTheUserCreatesANewItemInTheList(string itemTitle) { _createTodoItemCommand = new CreateTodoItemCommand { ListId = _listId, Title = itemTitle }; _itemId = await AppHooks.SendAsync(_createTodoItemCommand); }
public void ThenTheSystemShouldRespondWithTheValidationExceptionForEmptyItemCreation() { FluentActions.Invoking(async() => await AppHooks.SendAsync(new CreateTodoItemCommand())) .Should().Throw <ValidationException>(); }