public Program NewProgram(Bootstrapper bootstrapper, Runner runner) { ProgramClass program = new ProgramClass(); program.Bootstrapper = bootstrapper; program.Runner = runner; return(program); }
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); }