예제 #1
0
        public void SuccessAuthorize()
        {
            var auth   = new HardCodeAuthorize();
            var result = auth.Auth("user", "pass");

            Assert.Equal(true, result);
        }
예제 #2
0
        public void FiledAuthorize()
        {
            var auth   = new HardCodeAuthorize();
            var result = auth.Auth("user", "eeee");

            Assert.Equal(false, result);
        }