public void CrozzleValidationFail(string filePath)
        {
            var path             = AppDomain.CurrentDomain.BaseDirectory + filePath;
            var crozzleValidator = new CrozzleFileValidator();
            var result           = crozzleValidator.Validate(path);

            Console.WriteLine(string.Join("\n", result.Messages));
            Assert.IsFalse(result.IsValid);
        }
Beispiel #2
0
        /// <summary>
        /// Sample IoC container
        /// </summary>
        /// <returns>Configured form for running</returns>
        private static Form Configure()
        {
            var crozzleFileValidator = new CrozzleFileValidator();
            var configFileValidator  = new ConfigurationFileValidator();
            var crozzleLoader        = new CrozzleLoader(crozzleFileValidator);
            var configLoader         = new ConfigurationLoader(configFileValidator);
            var presenter            = new MainPresenter(crozzleLoader, configLoader);

            return(new MainForm(presenter));
        }