public void CreateAuthZ_Anon_Test1()
        {
            //Arrange
            var actual   = invoker.CreateAuthZ(null, 0, AuthZInvoker.AuthRole.anon, AuthZInvoker.AuthAdmin.nonadmin);
            var expected = factory.CreateAnonAuthZ();

            //Assert
            Assert.AreEqual(expected.DisplayName, actual.DisplayName);
            Assert.AreEqual(expected.HouseholdID, actual.HouseholdID);
            AssertAuthorizations(expected.EnabledAuthZ, actual.EnabledAuthZ);
            AssertAuthorizations(expected.AdminAuthZ, actual.AdminAuthZ);
            AssertAuthorizations(expected.AccountAuthZ, actual.AccountAuthZ);
            AssertAuthorizations(expected.SearchHouseholdAuthZ, actual.SearchHouseholdAuthZ);
            AssertAuthorizations(expected.MessageAuthZ, actual.MessageAuthZ);
            AssertAuthorizations(expected.InviteAuthZ, actual.InviteAuthZ);
            AssertAuthorizations(expected.HouseholdAuthZ, actual.HouseholdAuthZ);
            AssertAuthorizations(expected.TenantAuthZ, actual.TenantAuthZ);
            AssertAuthorizations(expected.ExpenseAuthZ, actual.ExpenseAuthZ);
            AssertAuthorizations(expected.TaskAuthZ, actual.TaskAuthZ);
            AssertAuthorizations(expected.SRequestAuthZ, actual.SRequestAuthZ);
        }
Exemple #2
0
 public void Setup()
 {
     //arrange
     factory    = new AuthZFactory();
     attributes = factory.CreateAnonAuthZ();
 }