Ejemplo n.º 1
0
        public Program NewProgram(Bootstrapper bootstrapper, Runner runner)
        {
            ProgramClass program = new ProgramClass();

            program.Bootstrapper = bootstrapper;
            program.Runner       = runner;
            return(program);
        }
Ejemplo n.º 2
0
        public void TestNewProgram()
        {
            Program program = MainFactory.NewProgram(CompositeBootstrapper, Runner);

            Assert.IsNotNull(program);
            Assert.IsInstanceOf(typeof(ProgramClass), program);
            ProgramClass programImpl = (ProgramClass)program;

            Assert.AreEqual(CompositeBootstrapper, programImpl.Bootstrapper);
        }