public MockSuccession(PlugIns.ICore modelCore) : base("MockSuccession") { // Initialize the succession library with the core. The other // 3 parameters are passed to Reproduction's Initialize method // but we want to use a mock seeding algorithm. Since the // base class' Initialize method uses an enumerated type to // specify the seeding algorithm, we just pass in an arbitrary // value, and then call Reproduction's Initialize method // directly with the mock seeding algorithm. Initialize(modelCore, null, // establishment probabilities SeedingAlgorithms.NoDispersal, null); // AddNewCohort delegate Reproduction.Initialize(CreateEstablishProbabilities(modelCore), MySeedingAlgorithm, MyAddNewCohort); }