NServiceBus.AcceptanceTesting.Support.EndpointRunner.RegisterInheritanceHierarchyOfContextInSettings C# (CSharp) Method

RegisterInheritanceHierarchyOfContextInSettings() static private method

static private RegisterInheritanceHierarchyOfContextInSettings ( ScenarioContext context ) : void
context ScenarioContext
return void
        void RegisterInheritanceHierarchyOfContextInSettings(ScenarioContext context)
        {
            var type = context.GetType();
            while (type != typeof(object))
            {
                endpointConfiguration.GetSettings().Set(type.FullName, scenarioContext);
                type = type.BaseType;
            }
        }