Example #1
0
 public void ShouldAuhtenticateUser()
 {
     UserService service = new UserService();
     TokenValueResult result = service.AuthenticateUser(userInfo, "testtest", Nfro.Core.Objects.Device.None);
     Assert.True(result.Success, String.Concat(result.Errors));
     Assert.NotNull(result.Token);
     Console.Out.WriteLine("Token is {0}.", result.Token.TokenString);
     service.LogOut(2, Nfro.Core.Objects.Device.None);
 }
Example #2
0
 public void ShouldCreateNewUser()
 {
     UserService service = new UserService();
     Result result = service.CreateNewUser(userInfo, "testtest");
     Assert.True(result.Success, String.Concat(result.Errors));
 }
Example #3
0
 public void ShouldActivateUser()
 {
     UserService service = new UserService();
     service.ActivateUser(2, "SMBU7DUY7");
 }