/// <summary> /// Initializes a new instance of the <see cref="StfPluginLoader"/> class. /// </summary> /// <param name="stfLogger"> /// The stf Logger. /// </param> /// <param name="stfConfiguration"> /// The stf Configuration. /// </param> public StfPluginLoader(IStfLogger stfLogger, StfConfiguration stfConfiguration) { PluginLogger = stfLogger; StfConfiguration = stfConfiguration; container = new UnityContainer(); RegisterInternalTypes(); }
/// <summary> /// The check for failed kernel log. /// </summary> /// <param name="kernelLogger"> /// The kernel logger. /// </param> /// <returns> /// The <see cref="IList{T}"/> of errors encountered when the kernel was initializing and setting things up. /// </returns> private IList <string> CheckForFailedKernelLog(IStfLogger kernelLogger) { var retVal = new List <string>(); var failsToReport = kernelLogger.NumberOfLoglevelMessages[StfLogLevel.Fail] > 0; var errorsToReport = kernelLogger.NumberOfLoglevelMessages[StfLogLevel.Error] > 0; if (failsToReport) { retVal.Add("StfKernel encountered a failure. All bets are off"); } if (errorsToReport) { retVal.Add("StfKernel encountered an error. All bets are off"); } return(retVal); }
/// <summary> /// Initializes a new instance of the <see cref="StfAssert"/> class. /// </summary> /// <param name="logger"> /// The logger. /// </param> public StfAssert(IStfLogger logger) : this() { AssertLogger = logger; LastMessage = "Initialized with logger"; Stats = new AssertStats(); }
/// <summary> /// Initializes a new instance of the <see cref="ModelInfoHandler"/> class. /// </summary> /// <param name="stfLogger"> /// The stf logger. /// </param> /// <param name="wtApiConfiguration"> /// Wrap Track API configuration /// </param> public ModelInfoHandler(IStfLogger stfLogger, WtApiConfiguration wtApiConfiguration) : base(stfLogger, wtApiConfiguration) { }
/// <summary> /// Initializes a new instance of the <see cref="PatternInfoHandler"/> class. /// </summary> /// <param name="stfLogger"> /// The stf logger. /// </param> /// <param name="wtApiConfiguration"> /// Wrap Track API configuration /// </param> public PatternInfoHandler(IStfLogger stfLogger, WtApiConfiguration wtApiConfiguration) : base(stfLogger, wtApiConfiguration) { }
/// <summary> /// Initializes a new instance of the <see cref="WtTestscriptUtils"/> class. /// </summary> /// <param name="stfLogger"> /// The stf logger. /// </param> public WtTestscriptUtils(IStfLogger stfLogger) { StfLogger = stfLogger; }
/// <summary> /// Initializes a new instance of the <see cref="InfoHandlerBase"/> class. /// </summary> /// <param name="stfLogger"> /// The stf logger. /// </param> /// <param name="wtApiConfiguration"> /// The wt api configuration. /// </param> public InfoHandlerBase(IStfLogger stfLogger, WtApiConfiguration wtApiConfiguration) { StfLogger = stfLogger; WtApiConfiguration = wtApiConfiguration; }
/// <summary> /// Initializes a new instance of the <see cref="LoggingHandler"/> class. /// </summary> /// <param name="stfLogger"> /// The stf logger. /// </param> public LoggingHandler(IStfLogger stfLogger) { this.stfLogger = stfLogger; }