コード例 #1
0
        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();
        }
コード例 #2
0
        public async Task Should_Delete_A_Tag()
        {
            var tag = (await _tagRepository.GetListAsync()).First();

            await _tagAppService.DeleteAsync(tag.Id);
        }