Exemple #1
0
        public LinkedTypeUnitTestsDataRuleRegistrar(Lifetime lifetime, DataContexts dataContexts)
        {
            var dataRule = new DataRule <UnitTestElements> .DesperateDataRule(
                "ProjectModelToUnitTestElements",
                UnitTestDataConstants.UnitTestElements.SELECTED,
                LinkedTypeUnitTestsDataRule);

            dataContexts.RegisterDataRule(lifetime, dataRule);
        }
Exemple #2
0
 public static IDataContext GetDataContextForSettingResultType(this SettingResetType settingResetType,
                                                               DataContexts dataContexts, Lifetime lifetime)
 {
     dataContexts.RegisterDataRule(lifetime, new DataRule <SettingResetType>(StandardDataRuleName, DataConstant, settingResetType));
     return(dataContexts.CreateWithDataRules(lifetime));
 }