public async Task DeleteAsync() { // Act await _tagAppService.DeleteAsync(Guid.Parse("d23b946e-4d38-458b-8e7f-ceff522131f8")); // Assert var result = await _tagRepository.FindAsync(c => c.Id == Guid.Parse("d23b946e-4d38-458b-8e7f-ceff522131f8")); result.ShouldBeNull(); }
public async Task Should_Delete_A_Tag() { var tag = (await _tagRepository.GetListAsync()).First(); await _tagAppService.DeleteAsync(tag.Id); }