Пример #1
0
 public void PersonService_Should_Return_Null_Without_Authentication()
 {
     TestPersonDataProvider provider = new TestPersonDataProvider();
     PersonService srv = new PersonService(new FalseTestAuthenticationService(), provider);
     Assert.IsNull(srv.GetPersons());
 }
Пример #2
0
 public void PersonService_ReturnPersons_Work_With_Authentication()
 {
     TestPersonDataProvider provider = new TestPersonDataProvider();
     PersonService srv = new PersonService(new TrueTestAuthenticationService(), provider);
     Assert.AreEqual(provider.InMemoryPersonCollection.Count, srv.GetPersons().Count);
 }