public async Task Delete_TasksContainer_Success() { var containerId = _context.TasksContainers.First().ListId; //act await _service.DeleteAsync(containerId); var resultContainer = await _context.TasksContainers.SingleOrDefaultAsync(x => x.ListId == containerId); //assert Assert.IsNull(resultContainer); }
public async Task DeleteContainer(Guid idContainer) { await _tasksContainerService.DeleteAsync(idContainer); }