Esempio n. 1
0
 public void Setup()
 {
     _machineKeyHelper = new Mock <IMachineKeyConfigurationHelper>().Object;
     _appsettingHelper = new Mock <IAppsettingKeyHelper>().Object;
     Mock.Get(_machineKeyHelper).Setup(mk => mk.GetMachineKey()).Returns(_expectedMachineKey);
     Mock.Get(_appsettingHelper).Setup(ah => ah.GetKeyFromAppsetting("AuthKey")).Returns(_expectedAppsettingKey);
 }
 public void Setup()
 {
     _machineKeyHelper = new Mock<IMachineKeyConfigurationHelper>().Object;
     _appsettingHelper = new Mock<IAppsettingKeyHelper>().Object;
     Mock.Get(_machineKeyHelper).Setup(mk => mk.GetMachineKey()).Returns(_expectedMachineKey);
     Mock.Get(_appsettingHelper).Setup(ah => ah.GetKeyFromAppsetting("AuthKey")).Returns(_expectedAppsettingKey);
 }
 internal SessionIDAuthenticationConfigurationHelper(SessionSecurityConfigurationSection config, IMachineKeyConfigurationHelper machineKeyHelper, IAppsettingKeyHelper appsettingHelper)
 {
     _sessionSecurityConfig = config;
     _machineKeyHelper      = machineKeyHelper;
     _appsettingHelper      = appsettingHelper;
 }
 internal SessionIDAuthenticationConfigurationHelper()
 {
     _sessionSecurityConfig = SessionSecurityConfiguration.Configuration;
     _machineKeyHelper      = new MachineKeyConfigurationHelper();
     _appsettingHelper      = new AppsettingKeyHelper();
 }
 internal SessionIDAuthenticationConfigurationHelper(SessionSecurityConfigurationSection config, IMachineKeyConfigurationHelper machineKeyHelper, IAppsettingKeyHelper appsettingHelper)
 {
     _sessionSecurityConfig = config;
     _machineKeyHelper = machineKeyHelper;
     _appsettingHelper = appsettingHelper;
 }
 internal SessionIDAuthenticationConfigurationHelper()
 {
     _sessionSecurityConfig = SessionSecurityConfiguration.Configuration;
     _machineKeyHelper = new MachineKeyConfigurationHelper();
     _appsettingHelper = new AppsettingKeyHelper();
 }