public void Should_invoke_mapper_with_reader_results() { Given_a_application_settings_provider(); var keyValueConfigurationCollection = new KeyValueConfigurationCollection(); _configReader.LoadSettings().Returns(keyValueConfigurationCollection); _configProvider.ReadConfiguration(); _mapper.Received(1).Map(keyValueConfigurationCollection); }
public void Should_use_mapper() { Given_a_configuration_provider_with_toggles_configured(); _configReader.LoadSettings().Returns(_keyValueConfigurationCollection); _mapper.Map(_keyValueConfigurationCollection).Returns(new List <Feature>()); _configProvider.ReadConfiguration(); _mapper.Received().Map(_keyValueConfigurationCollection); }