Esempio n. 1
0
        public void Authorization_Service_Fails_SuperAdmin_When_User_Is_Not_TestUser()
        {
            IAuthorizationService authService = new TestAuthorizationService();
            bool isSuper = authService.IsSuperAdmin("poo");

            Assert.IsFalse(isSuper);
        }
Esempio n. 2
0
        public void Authorization_Service_Can_Authorize_TestUser_As_SuperAdmin()
        {
            IAuthorizationService authService = new TestAuthorizationService();
            bool isSuper = authService.IsSuperAdmin("testuser");

            Assert.IsTrue(isSuper);
        }
 public void Authorization_Service_Fails_SuperAdmin_When_User_Is_Not_TestUser() {
     IAuthorizationService authService = new TestAuthorizationService();
     bool isSuper = authService.IsSuperAdmin("poo");
     Assert.IsFalse(isSuper);
 }
 public void Authorization_Service_Can_Authorize_TestUser_As_SuperAdmin() {
     IAuthorizationService authService = new TestAuthorizationService();
     bool isSuper = authService.IsSuperAdmin("testuser");
     Assert.IsTrue(isSuper);
 }