public void TraceWarningShouldWriteMessageToTrace() { var message = "testmessage"; var loggingService = new TraceLoggingService(); loggingService.LogWarning(message); Assert.AreEqual(message, traceListener.WrittenValue); }
public RemoteSyncDirectory( IRemoteDirectory remoteDirectory, bool compressBlobs = false) { RemoteDirectory = remoteDirectory; _remoteIndexOutputFactory = GetAzureIndexOutputFactory(); _remoteDirectoryIndexInputFactory = GetAzureIndexInputFactory(); LoggingService = new TraceLoggingService(); CompressBlobs = compressBlobs; }
public RemoteSyncDirectory(IRemoteDirectory remoteDirectory, Directory cacheDirectory, bool compressBlobs = false) { CacheDirectory = cacheDirectory; LoggingService = new TraceLoggingService(); RemoteDirectory = remoteDirectory; _lockFactory = GetLockFactory(); _remoteIndexOutputFactory = GetAzureIndexOutputFactory(); _remoteDirectoryIndexInputFactory = GetAzureIndexInputFactory(); GuardCacheDirectory(CacheDirectory); CompressBlobs = compressBlobs; }
public TraceLoggingServiceTests() { _traceLogging = new TraceLoggingService(); _fakeTraceListener = new FakeTraceListener(); }