Esempio n. 1
0
 private void RaiseMinorStatusUpdate(OperationsState type, ProgressUpdateMode mode)
 {
     try
     {
         _sessionEventsSubject.OnNext(new MinorSessionUpdateEventArgs(type, mode));
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
Esempio n. 2
0
 private void SetState(OperationsState state)
 {
     if (_viewModel.OperationsState != state)
     {
         _viewModel.OperationsState            = state;
         _viewModel.OperationsStateDescription = FunctionalExt.ValuedSwitch <OperationsState, string>(state)
                                                 .Case(OperationsState.None, "")
                                                 .Case(OperationsState.TestingPaused, "Paused")
                                                 .Case(OperationsState.Finished, "Finished:" + _viewModel.OperationsStateDescription)
                                                 .Case(OperationsState.PreCheck, "Pre-check...")
                                                 .Case(OperationsState.Mutating, "Creating mutants...")
                                                 .Case(OperationsState.Pausing, "Pausing...")
                                                 .Case(OperationsState.Stopping, "Stopping...")
                                                 .Case(OperationsState.Error, "Error occurred.")
                                                 .GetResult();
     }
 }
Esempio n. 3
0
 public SessionEventArgs(OperationsState eventType)
 {
     _eventType = eventType;
 }
Esempio n. 4
0
 public TestingProgressEventArgs(OperationsState eventType)
     : base(eventType)
 {
 }
Esempio n. 5
0
 public MutationScoreInfoEventArgs(OperationsState eventType) : base(eventType)
 {
 }
Esempio n. 6
0
 public MinorSessionUpdateEventArgs(OperationsState eventType, ProgressUpdateMode progressUpdateMode)
     : base(eventType)
 {
     _progressUpdateMode = progressUpdateMode;
     _percentCompleted = 0;
 }
Esempio n. 7
0
 public MinorSessionUpdateEventArgs(OperationsState eventType, int progress = 0)
     : base(eventType)
 {
     _progressUpdateMode = ProgressUpdateMode.SetValue;
     _percentCompleted = progress;
 }
Esempio n. 8
0
 public MutationFinishedEventArgs(OperationsState eventType)
     : base(eventType)
 {
 }
Esempio n. 9
0
 private void RaiseMinorStatusUpdate(OperationsState type, ProgressUpdateMode mode)
 {
     try
     {
         _sessionEventsSubject.OnNext(new MinorSessionUpdateEventArgs(type, mode));
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
Esempio n. 10
0
 private void SetState(OperationsState state)
 {
     if (_viewModel.OperationsState != state)
     {
         _viewModel.OperationsState = state;
         _viewModel.OperationsStateDescription = FunctionalExt.ValuedSwitch<OperationsState, string>(state)
             .Case(OperationsState.None, "")
             .Case(OperationsState.TestingPaused, "Paused")
             .Case(OperationsState.Finished, "Finished:" + _viewModel.OperationsStateDescription)
             .Case(OperationsState.PreCheck, "Pre-check...")
             .Case(OperationsState.Mutating, "Creating mutants...")
             .Case(OperationsState.Pausing, "Pausing...")
             .Case(OperationsState.Stopping, "Stopping...")
             .Case(OperationsState.Error, "Error occurred.")
             .GetResult();
     }
 }
Esempio n. 11
0
 public SessionEventArgs(OperationsState eventType)
 {
     _eventType = eventType;
 }
Esempio n. 12
0
 public TestingProgressEventArgs(OperationsState eventType)
     : base(eventType)
 {
 }
Esempio n. 13
0
 public MutationScoreInfoEventArgs(OperationsState eventType) : base(eventType)
 {
 }
Esempio n. 14
0
 public MinorSessionUpdateEventArgs(OperationsState eventType, ProgressUpdateMode progressUpdateMode)
     : base(eventType)
 {
     _progressUpdateMode = progressUpdateMode;
     _percentCompleted   = 0;
 }
Esempio n. 15
0
 public MinorSessionUpdateEventArgs(OperationsState eventType, int progress = 0)
     : base(eventType)
 {
     _progressUpdateMode = ProgressUpdateMode.SetValue;
     _percentCompleted   = progress;
 }
Esempio n. 16
0
 public MutationFinishedEventArgs(OperationsState eventType)
     : base(eventType)
 {
 }