public void ValidLoginTest() { AccountUnitTests _account = new AccountUnitTests(); _account.Create(); try { IdentityService service = new IdentityService(Session); UserContext userContext = service.Login(_account.Instance.Name, _account.Instance.Password); Assert.AreEqual(userContext.AccountId, _account.Instance.Id); Assert.GreaterOrEqual(DateTime.UtcNow, userContext.TimeStamp); } finally { _account.Delete(); } }