static TestLoggerStructure GetSerilog()
        {
            var sink   = new TestSerilogSink();
            var log    = new LoggerConfiguration().WriteTo.Sink(sink).MinimumLevel.Verbose().CreateLogger();
            var logger = new SerilogCommonLogger(log);

            logger.GlobalVariablesContext.Clear();
            logger.ThreadVariablesContext.Clear();

            return(new TestLoggerStructure(logger, sink));
        }
 public TestLoggerStructure(SerilogCommonLogger logger, TestSerilogSink sink)
 {
     this.Logger = logger;
     this.Sink   = sink;
 }