Skip to content

Instantly share code, notes, and snippets.

@efeozyer
Last active April 1, 2019 12:11
Show Gist options
  • Save efeozyer/e6601bab63142b73c50676d927302484 to your computer and use it in GitHub Desktop.
Save efeozyer/e6601bab63142b73c50676d927302484 to your computer and use it in GitHub Desktop.
void Should_Insert_Entity()
{
// Arrange
var entity = new Account
{
Id = "1",
Name = "first_Account",
IsActive = true,
CreatedOn = DateTime.UtcNow
};
// Act
var result = _repository.Insert(entity);
// Assert
var accounts = _repository.GetMany(x => true);
accounts.Count.Should()
.Be(1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment