Exemple #1
0
 public bool Reset(ISuperImportantBusinessTool bt)
 {
     try
     {
         bt.Stop();
         bt.OtherReallyReallyImportantStuff(15);
         bt.Start();
         return(true);
     }
     catch
     {
         return(false);
     }
 }
Exemple #2
0
 public static bool Reset(this ISuperImportantBusinessTool bt, int Timing)
 {
     // We do nothing with Timing
     try
     {
         bt.Stop();
         bt.OtherReallyReallyImportantStuff(Timing);
         bt.Start();
         return(true);
     }
     catch
     {
         return(false);
     }
 }
 public BusinessProcessStart(ISuperImportantBusinessTool bt)
 {
     this.bt = bt;
 }
Exemple #4
0
 public BusinessProcessStart(ISuperImportantBusinessTool bt, ILogger logger)
 {
     this.bt = bt;
     _logger = logger;
 }
Exemple #5
0
 public void SetUp()
 {
     _logger       = new Mock <ILogger>().Object;
     _businessTool = new SuperImportantBusinessTool();
 }
Exemple #6
0
 public static bool Reset(this ISuperImportantBusinessTool bt)
 {
     return(Implementation.Reset(bt));
 }