示例#1
0
 public LinkedTypesService(
     LinkedNamesCache linkedNamesCache,
     IEnumerable <ILinkedTypesProvider> linkedTypesProviders,
     IUnitTestElementStuff unitTestElementStuff)
 {
     _linkedNamesCache     = linkedNamesCache;
     _unitTestElementStuff = unitTestElementStuff;
     _linkedTypesProviders = linkedTypesProviders.ToList();
 }
示例#2
0
        public LinkedTestInvalidator(
            Lifetime lifetime,
            ChangedTypesProvider changedTypesProvider,
            IUnitTestElementStuff unitTestElementStuff,
            IUnitTestResultManager unitTestResultManager)
        {
            _unitTestElementStuff  = unitTestElementStuff;
            _unitTestResultManager = unitTestResultManager;

            changedTypesProvider.TypesChanged.Advise(lifetime, OnChanged);
        }
示例#3
0
        public LinkedTypeUnitTestsDataRuleRegistrar(
            Lifetime lifetime,
            DataContexts dataContexts,
            IUnitTestElementStuff unitTestElementStuff)
        {
            _unitTestElementStuff = unitTestElementStuff;

            var dataRule = new DataRule <UnitTestElements> .DesperateDataRule(
                "ProjectModelToUnitTestElements",
                UnitTestDataConstants.UnitTestElements.SELECTED,
                LinkedTypeUnitTestsDataRule);

            dataContexts.RegisterDataRule(lifetime, dataRule);
        }