Advertisement
Guest User

Untitled

a guest
May 30th, 2012
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. [Test]
  2. public void Connexion___UserExistant___RetourneUser()
  3. {
  4. DataSourceContainer dsc = new DataSourceContainer();
  5. Mock<IDatabase> mockDB = new Mock<IDatabase>();
  6. mockDB.SetupGet(bdd => bdd._Context).Returns(dsc);
  7. User u = null;
  8. u = BLL.Users.Connexion("log", "test");
  9. Assert.IsNotNull(u);
  10. Assert.AreEqual(u.login, "log");
  11. Assert.AreEqual(u.password, "test");
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement