public MainWindowViewModel( IEventAggregator eventAggregator, Func <OnlineMode, ITestServiceRequests> testServiceRequestFactory) { _eventAggregator = eventAggregator; _testServiceRequestFactory = testServiceRequestFactory(OnlineMode.Online); }
/// <summary> /// Initializes a new instance of the <see cref="SoftwareServiceOnlineRequests" /> class. /// </summary> /// <param name="notificationService">The notification service.</param> /// <param name="serviceRequestFactory">The service request factory.</param> public TestServiceClientRequest( Func <OnlineMode, ITestServiceRequests> serviceRequestFactory) { _offlineTestServiceRequests = serviceRequestFactory(OnlineMode.Offline); }