public IBoltWriter ThreadSafeBoltWriter()
 {
     var boltWriter = new StandardBoltWriter(_outputToParent, _writerFormat, _reader);
     var result = new ThreadSafeBoltWriter(boltWriter);
     SetupLog4NetBoltLogging.UsingWriter(result);
     return result;
 }
        public IBoltWriter ThreadSafeBoltWriter()
        {
            var boltWriter = new StandardBoltWriter(_outputToParent, _writerFormat, _reader);
            var result     = new ThreadSafeBoltWriter(boltWriter);

            SetupLog4NetBoltLogging.UsingWriter(result);
            return(result);
        }
        public void ShouldCallLogInfo()
        {
            var wrappedBoltWriter = Substitute.For<IBoltWriter>();
            var subjectUndertest = new ThreadSafeBoltWriter(wrappedBoltWriter);

            subjectUndertest.LogInfo("hello");
            subjectUndertest.Shutdown();

            wrappedBoltWriter.Received().LogInfo("hello");
        }
        public void ShouldCallFail()
        {
            var wrappedBoltWriter = Substitute.For<IBoltWriter>();
            var subjectUndertest = new ThreadSafeBoltWriter(wrappedBoltWriter);

            subjectUndertest.Fail(2);
            subjectUndertest.Shutdown();

            wrappedBoltWriter.Received().Fail(2);
        }
        public void ShouldCallEmitTupleDirect()
        {
            var wrappedBoltWriter = Substitute.For<IBoltWriter>();
            var subjectUndertest = new ThreadSafeBoltWriter(wrappedBoltWriter);

            subjectUndertest.EmitTupleDirect(null, null, 5, null);
            subjectUndertest.Shutdown();

            wrappedBoltWriter.Received().EmitTupleDirect(null, null, 5, null);
        }