public void RetrievesUserByName() { var repo = new UserRepository(); var alice = new User("Alice"); repo.Add(alice); Assert.Equal(alice, repo.Get("Alice")); }
public void DoesNotRetrieveUserThatDoesNotExist() { var repo = new UserRepository(); Assert.Null(repo.Get("Alice")); }