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

            changedTypesProvider.TypesChanged.Advise(lifetime, OnChanged);
        }
Example #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);
        }