public void T4_Login() { var ownerName = "Teste4 VariasPostagens"; var login = $"emanuel4{DateTime.Now.ToString("hhMMss")}"; var password = "******"; var description = "T4 Blog teste para validação do projeto"; BlogController blogCtr = new BlogController(); var idBlog = blogCtr.Post(new BlogModel { OwnerName = ownerName, Login = login, Password = password, Description = description }); // V A L I D A Ç Ã O /////////////////////// var tokenInvalido = blogCtr.Login(idBlog, login, "senhaInvalida"); var token = blogCtr.Login(idBlog, login, "1234"); Assert.AreEqual("", tokenInvalido); Assert.IsTrue(token.Length == 24); }