Пример #1
0
 public void GetUser_WithNonExistingUsername_ByUsernameAndPassword_ThrowException()
 {
     string username = "******";
     string password = "******";
     var service = new DataService();
     service.GetUser(username, password, APPKEY);
 }
Пример #2
0
 public void GetUser_WithExistingUsernameByUsernameAndPassword_ReturnsUser()
 {
     string username = "******";
     string password = "******";
     var service = new DataService();
     var user = service.GetUser(username, password, APPKEY);
     Assert.IsNotNull(user);
     Assert.IsInstanceOfType(user, typeof(User));
 }
Пример #3
0
 public void GetUser_WithNullUsername_ThrowException()
 {
     var service = new DataService();
     service.GetUser(null, "12345", APPKEY);
 }
Пример #4
0
 public void GetUser_WithNullUsernameAndPassword_ThrowException()
 {
     var service = new DataService();
     service.GetUser(null, null, APPKEY);
 }
Пример #5
0
 public void GetUser_WithNullPassword_ThrowException()
 {
     var service = new DataService();
     service.GetUser("foo", null, APPKEY);
 }