Example #1
0
        public void ConsoleLoggingTest()
        {
            var moqConfiguration = new Mock <IConfiguration>();
            var startup          = new StartUp_Splunk(moqConfiguration.Object);
            var result           = startup.SetupConsoleLogging(null);

            Assert.IsNotNull(result);
        }
Example #2
0
        public void SplunkLoggingTest()
        {
            var moqConfiguration = new Mock <IConfiguration>();

            _ = moqConfiguration.Setup(c => c.GetSection(It.IsAny <string>())).Returns(new Mock <IConfigurationSection>().Object);
            var startup = new StartUp_Splunk(moqConfiguration.Object);
            var result  = startup.SetupSplunk(null);

            Assert.IsNotNull(result);
        }