public TestDetailsViewModel(Test test, ITestItemViewModelFactory testItemViewModelFactory,
            ILogFileManager logFileManager, ILogController logController, 
            IAppController appController, IRecordingController recordingController,
            ITrainingController trainingController,
            IEventAggregator eventAggregator)
        {
            this.test = test;
            this.testItemViewModelFactory = testItemViewModelFactory;
            this.logFileManager = logFileManager;
            this.logController = logController;
            this.appController = appController;
            this.recordingController = recordingController;
            this.trainingController = trainingController;

            eventAggregator.GetEvent<AddTestItemEvent>().Subscribe(AddTestItemEventHandler);
            //TestItems = new ObservableCollection<ITestItemViewModel>(test.TestItems.Select(testItemViewModelFactory.Create));
            RefreshTestItems();
            PlayCommand = new DelegateCommand(ExecutePlayCommand);
            AppendToEndOfTestCommand = new DelegateCommand(ExecuteAppendToEndOfTestCommand);
            AppendToStartOfTestCommand = new DelegateCommand(ExecuteAppendToStartOfTestCommand);
            AppendAfterSelectedItemCommand = new DelegateCommand(ExecuteAppendAfterSelectedItemCommand);
            DeleteSelectedItemCommand = new DelegateCommand(ExecuteDeleteSelectedItemCommand);
            RefreshCommand = new DelegateCommand(ExecuteRefresh);
            RunAsTrainingCommand = new DelegateCommand(EecuteRunAsTrainingCommand);
        }
Exemple #2
0
        public LogNode(ProjectFile logFile, ILogFileManager logFileManager,
            ILogController logController)
        {
            this.logFile = logFile;
            this.logFileManager = logFileManager;
            this.logController = logController;

            DefaultCommand = new DelegateCommand(ExecuteDefaultCommand);
        }
Exemple #3
0
 public static void TryWriteLogObject(this object obj, ILogFileManager logFileManager, IClientFeatures clientFeatures, LogType logType = LogType.Info, bool indented = true)
 {
     try
     {
         logFileManager.WriteText(obj.BuildLogObject(clientFeatures).Stringify(indented) + "\n");
     }
     catch (Exception ex)
     {
         try
         {
             logFileManager.WriteText(ex.BuildLogObject(clientFeatures).Stringify(indented) + "\n");
         }
         catch
         {
         }
     }
 }
Exemple #4
0
 public BasicAuthenticationAttribute()
 {
     _logFileManager = new LogFileManager(LogKeys.LogPath, LogKeys.LogName);
     _clientFeatures = new ClientFeatures();
 }
 public BaseController()
 {
     _logFileManager = new LogFileManager(LogKeys.LogPath, LogKeys.LogName);
     _clientFeatures = new ClientFeatures();
 }
Exemple #6
0
        public LogFileProcessJob(ILogFileManager logFileManager)
        {
            this.logFileManager = logFileManager;

            semaphore = new SemaphoreSlim(1);
        }
Exemple #7
0
 public UploadLogModel(ILogFileManager logFileManager, IMapper mapper)
 {
     this.logFileManager = logFileManager;
     this.mapper         = mapper;
 }