Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
[Test]
public void When_saving_a_new_document_document_is_persisted()
{
const int expectedCategoryCount = 2;
var repository = GetRepository();
repository.Save(new List<Category>
{
new Category
{
Id = Guid.NewGuid().ToString()
},
new Category
{
Id = Guid.NewGuid().ToString()
}
});
var result = repository.GetAll();
result.Count().Should().Be(expectedCategoryCount);
}
[TearDown]
public void TearDown()
{
var repository = GetRepository();
repository.GetAll().ForEach(x => repository.Delete(x.Id));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.