public LinkedTypeUnitTestsDataRuleRegistrar(Lifetime lifetime, DataContexts dataContexts) { var dataRule = new DataRule <UnitTestElements> .DesperateDataRule( "ProjectModelToUnitTestElements", UnitTestDataConstants.UnitTestElements.SELECTED, LinkedTypeUnitTestsDataRule); dataContexts.RegisterDataRule(lifetime, dataRule); }
public static IDataContext GetDataContextForSettingResultType(this SettingResetType settingResetType, DataContexts dataContexts, Lifetime lifetime) { dataContexts.RegisterDataRule(lifetime, new DataRule <SettingResetType>(StandardDataRuleName, DataConstant, settingResetType)); return(dataContexts.CreateWithDataRules(lifetime)); }