public void UserCanBeComparedWithEntityComparer() { IEqualityComparer<User> entityComparer = new EntityEqualityComparer(); var user1 = new User(); var user2 = new User(); entityComparer.Equals(user1, user2) .Should().BeFalse(); }
public void UserRepositorySavesObjects() { var userRepository = new UserRepository(); object userAsObject = new User(); userRepository.Save(userAsObject); }