public MainWindowViewModel(
     IEventAggregator eventAggregator,
     Func <OnlineMode, ITestServiceRequests> testServiceRequestFactory)
 {
     _eventAggregator           = eventAggregator;
     _testServiceRequestFactory = testServiceRequestFactory(OnlineMode.Online);
 }
예제 #2
0
 /// <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);
 }