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