diff --git a/src/GenericMvc.Test.Library/Repository/IRepositoryTests.cs b/src/GenericMvc.Test.Library/Repository/IRepositoryTests.cs index df93f3c..fc9b229 100644 --- a/src/GenericMvc.Test.Library/Repository/IRepositoryTests.cs +++ b/src/GenericMvc.Test.Library/Repository/IRepositoryTests.cs @@ -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); } diff --git a/test/GenericMvc.Tests/Repositories/EntityFramework.cs b/test/GenericMvc.Tests/Repositories/EntityFramework.cs index 04dfdd7..a5ccbeb 100644 --- a/test/GenericMvc.Tests/Repositories/EntityFramework.cs +++ b/test/GenericMvc.Tests/Repositories/EntityFramework.cs @@ -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) {