public IEnumerable<TaskDefinition> Get(Specification<TaskDefinition> specification)
        {
            IEnumerable<TaskDefinition> result = new List<TaskDefinition>();
            var taskDefinitionLoader = new TaskDefinitionLoader(logger);

            try
            {
                result = taskDefinitionLoader.LoadFromFolder(TaskDirectory);
            }
            catch (Exception exception)
            {
                logger.WriteEntry(new ErrorLogEntry(GetType().ToString(), exception.ToString()));
            }

            return result.ToList();
        }
 public void SetUp()
 {
     var loggerMock = new Mock<ILog>();
     taskDefinitionLoader = new TaskDefinitionLoader(loggerMock.Object);
 }