public void WhenUsingLocatorWithEmptyProviderList_ThenNoProvidersAreReturned()
        {
            var locator = new CompositeTypeRegistrationsProviderLocator();

            var registrations = locator.GetRegistrations(configSource);

            Assert.AreEqual(0, registrations.Count());
        }
        public void WhenFindingTypeRegistrationProviders_ThenCryptoAndEHABRegistrationsAreReturned()
        {
            var locator = new CompositeTypeRegistrationsProviderLocator(
                new ConfigSectionLocator(CryptographySettings.SectionName),
                new ConfigSectionLocator(ExceptionHandlingSettings.SectionName));

            var registrations = locator.GetRegistrations(configSource)
                .Where(r => r.ServiceType == typeof(IHashProvider) || r.ServiceType == typeof(ExceptionPolicyImpl));

            Assert.AreEqual(3, registrations.Count());
        }