public async Task ShouldRemovePost() { // Arrange IPostRepository repository = new BlobPostRepository(); await repository.AddPost(_data); // Act await repository.RemovePost(_data.Title); // Assert var data = await repository.GetPost(_data.Title); Check.That(data.Title).IsNullOrWhiteSpace(); Check.That(data.Content).IsNullOrWhiteSpace(); }
public async Task ShouldGetPost() { // Arrange IPostRepository repository = new BlobPostRepository(); await repository.AddPost(_data); // Act var data = await repository.GetPost(_data.Title); // Assert Check.That(data).IsEqualTo(_data); // Clean await repository.RemovePost(_data.Title); }