Example #1
0
        public void XmlEngineConfigurator_works()
        {
            Type[]           testtypes = new Type[] { typeof(NullLogger), typeof(NullAction) };
            IServiceResolver resolver  = new SimpleServiceResolver();
            Mock <IMutableEngineConfiguration> mconfig = new Mock <IMutableEngineConfiguration>();

            mconfig.Setup(x => x.ServiceResolver).Returns(resolver);

            using (MemoryStream stream = new MemoryStream(Encoding.UTF8.GetBytes(_xmlconfigEmpty))) {
                XmlEngineConfigurator xec = new XmlEngineConfigurator(stream);
                xec.Configure(mconfig.Object);
            }
        }
Example #2
0
        public void LoadConfiguration(string path)
        {
            XmlEngineConfigurator configurator = new XmlEngineConfigurator(path);

            configurator.Configure(this);
        }