Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkis117 committed Mar 20, 2017
1 parent 4314bf5 commit 55ef385
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
3 changes: 2 additions & 1 deletion src/GenericMvc.Test.Library/Repository/IRepositoryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,8 @@ public virtual async Task Update()

Assert.NotNull(updated);

Assert.NotSame(mutated, updated);
//todo this should be seperate
Assert.Same(mutated, updated);

updatedList.Add(updated);
}
Expand Down
13 changes: 1 addition & 12 deletions test/GenericMvc.Tests/Repositories/EntityFramework.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,7 @@ public EntityFramework() : base()

}

protected override Blog Mutator(Blog entity)
{
return new Blog()
{
Id = entity.Id,
DateCreated = entity.DateCreated,
Name = entity.Name,
Owner = entity.Owner,
OwnerId = entity.OwnerId,
Posts = entity.Posts
};
}
protected override Blog Mutator(Blog entity) => entity;

protected override Blog CreateObjectGraph(int n)
{
Expand Down

0 comments on commit 55ef385

Please sign in to comment.