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