public void Initialize() { actionStrategy = new ActionStrategy(); builderContext = new MockBuilderContext(actionStrategy); workItem = new TestableRootWorkItem(); builderContext.Locator.Add(new DependencyResolutionLocatorKey(typeof(WorkItem), null), workItem); actionCatalog = workItem.Services.AddNew <MockActionCatalog, IActionCatalogService>(); }
public override sealed void Resolve(World world) { ChooseAction(world); ChooseTimeEffect(); ActionStrategy.Act(this, world); TimeStrategy.Endure(this, world); }