public void ReadErrorLogTask_AdminScriptsNotInstalled()
        {
            //Arrange
            _sqlRepo.Setup(r => r.AdminScriptsInstalled()).Returns(false);
            _logger.Setup(l => l.LogWarning(It.Is <String>(s => s.Contains("Installation of Performance Dashboard is incomplete")), It.IsAny <String>()));

            //Act
            var task   = new ReadErrorLogTask(_logger.Object, _sqlRepo.Object, 123);
            var result = task.Execute(new ProcessControl());

            //Assert
            Assert.That(result, Is.True);
            _sqlRepo.VerifyAll();
        }
        public void ReadErrorLogTask_Execute()
        {
            //Arrange
            _sqlRepo.Setup(r => r.AdminScriptsInstalled()).Returns(true);
            _sqlRepo.Setup(r => r.SummarizeSqlServerPageouts());

            //Act
            var tsk    = new ReadErrorLogTask(_logger.Object, _sqlRepo.Object, 0);
            var result = tsk.Execute(new ProcessControl());

            //Assert
            Assert.That(result, Is.True);
            _sqlRepo.Verify(r => r.SummarizeSqlServerPageouts(), Times.Once);
        }