public void GivenNonAbstractDescendantOfTabInApplicationDomain_GetDefinedTabs_ReturnsListOfTabsWithInstanceOfThatClass() { Type typeThatShouldBeLocated = typeof(TestTab); TabLocator tabLocator = TabLocatorFactory.Create(); IEnumerable <Tab> definedTabs = tabLocator.GetDefinedTabs(); Assert.Equal <int>(1, definedTabs.Count(tab => tab.GetType() == typeThatShouldBeLocated)); }
protected internal virtual void UpdateTabDefinitions() { IEnumerable <Tab> definedTabs = TabLocator.GetDefinedTabs(); TabDefinitionUpdater.UpdateTabDefinitions(definedTabs); }