public void GetKeyFromConfig_UseMachineKeyTrue_ReturnsMachineKey()
        {
            var sessionSecurityConfig = new SessionSecurityConfigurationSection();
            sessionSecurityConfig.SessionIDAuthentication.UseMachineKey = true;
            var helper = new SessionIDAuthenticationConfigurationHelper(sessionSecurityConfig, _machineKeyHelper, _appsettingHelper);

            var key = helper.GetKeyFromConfig();

            Assert.AreEqual(_expectedMachineKey, key);
        }
        public void GetKeyFromConfig_UseMachineKeyFalseNoAuthenticationKeyAppsettingConfigured_ReturnsKeyFromAppsetting()
        {
            var sessionSecurityConfig = new SessionSecurityConfigurationSection();
            sessionSecurityConfig.SessionIDAuthentication.UseMachineKey = false;
            sessionSecurityConfig.SessionIDAuthentication.AuthenticationKeyAppsetting = "AuthKey";
            var helper = new SessionIDAuthenticationConfigurationHelper(sessionSecurityConfig, _machineKeyHelper, _appsettingHelper);

            var key = helper.GetKeyFromConfig();

            Assert.AreEqual(_expectedAppsettingKey, key);
        }