Esempio n. 1
0
        public void GivenAnonymousRequestAllowedBlockingTypeInvalidIpAddressAndValidBrand(string blockingType)
        {
            var          ipAddress = SecurityStepsHelper.GetValidIpAddress();
            const string brandName = SecurityStepsHelper.ValidBrandName;

            SecurityHelper.CreateBrandIpRegulation(ipAddress, brandName, blockingType: blockingType);

            Set(SecurityContextFields.IpAddress, ipAddress);
            Set(SecurityContextFields.BrandName, SecurityStepsHelper.ValidBrandName);
        }
Esempio n. 2
0
 public void GivenAnonymousRequestAllowedLocalhostValueForIpAddressAndValidBrand()
 {
     Set(SecurityContextFields.IpAddress, SecurityStepsHelper.GetLocalhostIpAddress());
     Set(SecurityContextFields.BrandName, SecurityStepsHelper.ValidBrandName);
 }
Esempio n. 3
0
 public void GivenAnonymousRequestAllowedInalidIpAddressAndInvalidBrand()
 {
     Set(SecurityContextFields.IpAddress, SecurityStepsHelper.GetInvalidIpAddress());
     Set(SecurityContextFields.BrandName, SecurityStepsHelper.InvalidBrandName);
 }