Last active
April 1, 2019 12:11
-
-
Save efeozyer/e6601bab63142b73c50676d927302484 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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