public void InitializeContext() { this.context = new Mock<ISchemaUpgradeContext>(); context.Setup(ctx => ctx.UpgradeProcessors) .Returns(Enumerable.Empty<Lazy<IPatternModelSchemaUpgradeProcessor, ISchemaUpgradeProccesorOptions>>()); this.manager = new PatternModelSchemaUpgradeManager(); }
public void InitializeContext() { this.processors = new List<Lazy<IPatternModelSchemaUpgradeProcessor, ISchemaUpgradeProccesorOptions>>(); this.context = new Mock<ISchemaUpgradeContext>(); context.Setup(ctx => ctx.UpgradeProcessors).Returns(this.processors); context.Setup(ctx => ctx.OpenSchema()).Returns(document); this.manager = new PatternModelSchemaUpgradeManager(); }