Пример #1
0
 public void Combine_HasAllowed_Should_Allowed()
 {
     PermissionCheckResult.Combine(
         PermissionCheckResult.NotSure,
         PermissionCheckResult.Allowed)
     .LogJson().Category.ShouldEqual(PermissionCheckResultCategory.Allowed);
 }
Пример #2
0
 public void Combine_AllNotSure_Should_NotSure()
 {
     PermissionCheckResult.Combine(
         PermissionCheckResult.NotSure,
         PermissionCheckResult.NotSure)
     .LogJson().Category.ShouldEqual(PermissionCheckResultCategory.NotSure);
 }
Пример #3
0
 public void Combine_HasForbidden_Should_Forbidden()
 {
     PermissionCheckResult.Combine(
         PermissionCheckResult.NotSure,
         PermissionCheckResult.Allowed,
         PermissionCheckResult.Forbidden)
     .LogJson().Category.ShouldEqual(PermissionCheckResultCategory.Forbidden);
 }
Пример #4
0
 public void Combine_NullOrEmpty_Should_Allowed()
 {
     PermissionCheckResult.Combine(null).LogJson().Category.ShouldEqual(PermissionCheckResultCategory.Allowed);
     PermissionCheckResult.Combine().LogJson().Category.ShouldEqual(PermissionCheckResultCategory.Allowed);
 }