public OsInfoBuilderTests() { fileProviderMock = new Mock <Microsoft.Extensions.FileProviders.IFileProvider>(MockBehavior.Strict); loggerFactoryMock = new Mock <Microsoft.Extensions.Logging.ILoggerFactory>(MockBehavior.Strict); _builder = new OsInfoBuilder(new SimpleResourceFileRegexLoader <OsRegex>("GovITHub.Auth.Common.Tests.oss.yml", fileProviderMock.Object, loggerFactoryMock.Object)); }
public OsInfoBuilderTests() { fileProviderMock = new Mock <Microsoft.Extensions.FileProviders.IFileProvider>(MockBehavior.Strict); fileInfoMock = new Mock <Microsoft.Extensions.FileProviders.IFileInfo>(MockBehavior.Strict); loggerFactoryMock = new Mock <Microsoft.Extensions.Logging.ILoggerFactory>(MockBehavior.Strict); loggerMock = new Mock <Microsoft.Extensions.Logging.ILogger>(MockBehavior.Strict); loggerFactoryMock.Setup(x => x.CreateLogger("GovITHub.Auth.Common.Services.DeviceDetection.DeviceInfoBuilders.Regexes.SimpleResourceFileRegexLoader")).Returns(loggerMock.Object); osInfoBuilder = new OsInfoBuilder(new SimpleResourceFileRegexLoader <OsRegex>(regexFilePath, fileProviderMock.Object, loggerFactoryMock.Object)); }