public void LoadsTheSplunkRCFile(Mock<IFileSystem> mockFileSystem)
 {
     mockFileSystem.Setup(fs => fs.FileExists(It.IsAny<string>())).Returns(true);
     mockFileSystem.Setup(fs => fs.ReadFileLines(It.IsAny<string>())).Returns(new string[]{});
     var pack = new SplunkPack(mockFileSystem.Object);
     pack.LoadConfig("");
     mockFileSystem.Verify(fs=>fs.ReadFileLines(It.IsAny<string>()));
 }
            public void LoadsTheSplunkRCFile(Mock <IFileSystem> mockFileSystem)
            {
                mockFileSystem.Setup(fs => fs.FileExists(It.IsAny <string>())).Returns(true);
                mockFileSystem.Setup(fs => fs.ReadFileLines(It.IsAny <string>())).Returns(new string[] {});
                var pack = new SplunkPack(mockFileSystem.Object);

                pack.LoadConfig("");
                mockFileSystem.Verify(fs => fs.ReadFileLines(It.IsAny <string>()));
            }
 public void ReturnsANewService(SplunkPack pack)
 {
     pack.CreateService().ShouldNotBeNull();
 }
 public void SubscribesToTheCertCallback(SplunkPack pack)
 {
     ServicePointManager.ServerCertificateValidationCallback.ShouldNotBeNull();
 }
 public void ReturnsANewService(SplunkPack pack)
 {
     pack.CreateService().ShouldNotBeNull();
 }
 public void SubscribesToTheCertCallback(SplunkPack pack)
 {
     ServicePointManager.ServerCertificateValidationCallback.ShouldNotBeNull();
 }