public void GetMachineKey_MachineKeyConfigured_ReturnsMachineKey()
        {
            var config = new MachineKeySection {
                ValidationKey = MachineKeyValidation
            };
            var helper = new MachineKeyConfigurationHelper(config);

            var key = helper.GetMachineKey();

            Assert.AreEqual(_expectedMachineKey, key);
        }
        public void GetMachineKey_DefaultMachineKeyConfig_ThrowsException()
        {
            var helper = new MachineKeyConfigurationHelper(new MachineKeySection());

            Assert.Throws <ApplicationException>(() => helper.GetMachineKey());
        }