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); }
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); }
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); }