void SubscribeObserverToReportEvents(Scenarios.IProvidesTestRunEvents events, FlexDi.IResolvesServices resolver) { var reporter = resolver.Resolve <IObservesReportableEvents>(name); reporter.Subscribe(events); }
void SubscribeRendererToCompletedScenrios(Scenarios.IProvidesTestRunEvents events, FlexDi.IResolvesServices resolver) { var reportableScenarioProvider = resolver.TryResolve <IExposesCompletedScenarios>(name); var scenarioRenderer = resolver.TryResolve <IObservesScenarioCompletion>(name); if (reportableScenarioProvider == null || scenarioRenderer == null) { return; } scenarioRenderer.Subscribe(reportableScenarioProvider); }
public override void GrantAbilities(Actors.ICanReceiveAbilities actor, FlexDi.IResolvesServices resolver) { var consumeWebServices = resolver.Resolve <ConsumeWebServices>(); actor.IsAbleTo(consumeWebServices); }
public override void GrantAbilities(Actors.ICanReceiveAbilities actor, FlexDi.IResolvesServices resolver) { var addNumbers = resolver.Resolve <AddNumbers>(); actor.IsAbleTo(addNumbers); }