Пример #1
0
        public void RetrievesUserByName()
        {
            var repo = new UserRepository();
            var alice = new User("Alice");
            repo.Add(alice);

            Assert.Equal(alice, repo.Get("Alice"));
        }
Пример #2
0
 public void DoesNotRetrieveUserThatDoesNotExist()
 {
     var repo = new UserRepository();
     Assert.Null(repo.Get("Alice"));
 }