public async Task LoginUser_CorrectUserData_ReturnAToken() { var login = await UsersControl.LoginUser(GoodUser); Assert.IsInstanceOf(typeof(Token), login.Data); }
public async Task LoginUser_UncorrectUserData_LoginFailedMessage() { var login = await UsersControl.LoginUser(WrongUser); Assert.AreEqual("Wrong login or password!", login.ClientError); }
public async Task LoginUser_UncorrectUserData_LoginStatusFailed() { var login = await UsersControl.LoginUser(WrongUser); Assert.AreEqual(System.Net.HttpStatusCode.BadRequest, login.StatusCode); }
public async Task LoginUser_CorrectUserData_LoginSuccesMessage() { var login = await UsersControl.LoginUser(GoodUser); Assert.AreEqual("You are logged in!", login.SuccessMessage); }