예제 #1
0
        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);
        }
예제 #2
0
 public async Task DeleteContainer(Guid idContainer)
 {
     await _tasksContainerService.DeleteAsync(idContainer);
 }