Example #1
0
 private bool HasConfiguration(IConfiguration config)
 {
     _apmProvider = config.GetApmProvider();
     return(Enum.IsDefined(typeof(ApmProviders), _apmProvider));
 }
        public void When_Valid_Provider_Is_Configured_Should_Return_The_Expected(string providerName, ApmProviders expected)
        {
            var config = SetConfigToApmProviderTest(providerName);

            var result = config.GetApmProvider();

            result.Should().Be(expected);
        }