public void Login() { BL.IUser user = new BL.User(); if (new BL.AccountService().IsLogged(TOKEN)) user.Logout(TOKEN); string token = user.Login("*****@*****.**", "martin@123"); Assert.IsFalse(string.IsNullOrEmpty(token)); }
public void BadPasswordLogin() { try { string token = new BL.User().Login("*****@*****.**", "martin123"); } catch(Exception ex) { Assert.IsTrue(ex is DTO.MamalonaException); } }