/// <summary> /// Initializes a new <see cref="AutomationSourceViewModel"/>. /// </summary> /// <param name="file">A file that may contain automated tests</param> /// <param name="testFactory">Creates automated test view-models</param> /// <param name="testDiscoverer">Finds tests in files</param> /// <param name="scheduler">Used to schedule background tasks</param> public AutomationSourceViewModel(TfsFile file, Func <ITestAutomation, TestAutomationViewModel> testFactory, ITestAutomationDiscoverer testDiscoverer, TaskScheduler scheduler) { _file = file; _testFactory = testFactory; _testDiscoverer = testDiscoverer; _scheduler = scheduler; }
/// <summary> /// Initializes a new <see cref="AutomationSourceViewModel"/>. /// </summary> /// <param name="file">A file that may contain automated tests</param> /// <param name="testDiscoverer">Finds tests in files</param> public AutomationSourceViewModel(TfsFile file, ITestAutomationDiscoverer testDiscoverer) { _file = file; _testDiscoverer = testDiscoverer; }