Ejemplo 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);
        }
Ejemplo n.º 2
0
 public void GivenAnonymousRequestAllowedLocalhostValueForIpAddressAndValidBrand()
 {
     Set(SecurityContextFields.IpAddress, SecurityStepsHelper.GetLocalhostIpAddress());
     Set(SecurityContextFields.BrandName, SecurityStepsHelper.ValidBrandName);
 }
Ejemplo n.º 3
0
 public void GivenAnonymousRequestAllowedInalidIpAddressAndInvalidBrand()
 {
     Set(SecurityContextFields.IpAddress, SecurityStepsHelper.GetInvalidIpAddress());
     Set(SecurityContextFields.BrandName, SecurityStepsHelper.InvalidBrandName);
 }