Пример #1
0
 public void CheckoutCreate()
 {
     MockUserResource userResource = new MockUserResource();
     IUserService userService = new UserService(userResource);
     userService.CheckoutCreate(1, 1);
     Assert.AreEqual(userResource.CheckedOutUserID, 1);
 }
Пример #2
0
 public void RevertInterestFail()
 {
     MockUserResource userResource = new MockUserResource();
     IUserService userService = new UserService(userResource);
     //userService.RevertInterest(1, 1);
     userService.InterestAction(1, 1, Incyte.InterestActionType.Revert);
     Assert.AreEqual(userResource.RevertInterestFromUserID, 0);
     Assert.AreEqual(userResource.RevertInterestToUserID, 0);
 }
Пример #3
0
 public void Hangup()
 {
     MockUserResource userResource = new MockUserResource();
     IUserService userService = new UserService(userResource);
     //userService.RevertInterest(1, 2);
     userService.InterestAction(1, 2, Incyte.InterestActionType.Hangup);
     Assert.AreEqual(userResource.HangupFromUserID, 1);
     Assert.AreEqual(userResource.HangupToUserID, 2);
 }
Пример #4
0
 public void ShowInterestFail()
 {
     MockUserResource userResource = new MockUserResource();
     IUserService userService = new UserService(userResource);
     userService.InterestAction(1, 1,Incyte.InterestActionType.Link);
     Assert.AreEqual(userResource.ShowInterestFromUserID, 0);
     Assert.AreEqual(userResource.ShowInterestToUserID, 0);
 }
Пример #5
0
 public void VisibleProfilesGet()
 {
     IUserResource userResource = new MockUserResource();
     IUserService userService = new UserService(userResource);
     List<UserInfo> users = userService.VisibleProfilesGet("1");
 }