コード例 #1
0
        public void AuthorizeGetTest()
        {
            var authorizeController = new AuthorizeController();
            var login = authorizeController.Authenticate("*****@*****.**", "password");

            Assert.AreEqual("1", login.Id);
        }
コード例 #2
0
        public void AuthorizePostTest()
        {
            var authorizeController = new AuthorizeController();
            var login = authorizeController.Authenticate(new Logon {
                UserName = "******", Password = "******"
            });

            Assert.AreEqual("1", login.Id);
        }