Example #1
0
            public void Then_the_user_should_have_special_claims()
            {
                _action.ActionAgainst.Email = "*****@*****.**";
                AppSettingsBuilder.WithSetting(AppSettingKey.AdminEmailWhitelist, String.Format("|{0}|", _action.ActionAgainst.Email));

                PerformAction();

                Assert.IsNotEmpty(_action.ActionAgainst.Claims);
            }
Example #2
0
            public void Then_the_user_should_have_no_special_claims()
            {
                _action.ActionAgainst.Email = "*****@*****.**";
                AppSettingsBuilder.WithSetting(AppSettingKey.AdminEmailWhitelist, "|[email protected]|");

                PerformAction();

                Assert.IsEmpty(_action.ActionAgainst.Claims);
            }