Exemplo n.º 1
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);
 }
Exemplo n.º 2
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);
 }
Exemplo n.º 3
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);
 }