public void GetByName_ReturnFriendWithTheSameSame( FriendService sut) { var myFriendsCollection = Builder <Friend> .CreateListOfSize(10).All() .TheFirst(1) .With(x => x.Name = "Sergio") .TheNext(1) .With(x => x.Name = "Sergio") .Build() .ToList(); sut.InMemoryCacheService.Remove(CacheKey); sut.InMemoryCacheService.Insert(CacheKey, myFriendsCollection); var result = sut.GetByName("Sergio"); Assert.True(result.Succeeded); Assert.True(result.Object.Count == 2); }