/// <summary> /// Gets the report of the current instance, for the given actor. /// </summary> /// <returns>The human-readable report text.</returns> /// <param name="actor">An actor for whom to write the report.</param> protected override string GetReport(Actors.INamed actor) => $"{actor.Name} can consume HTTP web services.";
/// <summary> /// Reports that an actor has begun a 'given' part of their performance and that subsequent performables occur /// in this context. /// </summary> /// <param name="actor">The actor.</param> /// <param name="scenarioIdentity">The screenplay scenario identity.</param> public void BeginGiven(Actors.INamed actor, Guid scenarioIdentity) { builder.BeginPerformanceCategory(ReportModel.ReportableCategory.Given, scenarioIdentity); }
/// <summary> /// Reports that an actor has ended the 'given' part of their performance. /// </summary> /// <param name="actor">The actor.</param> /// <param name="scenarioIdentity">The screenplay scenario identity.</param> public void EndGiven(Actors.INamed actor, Guid scenarioIdentity) { builder.EndPerformanceCategory(scenarioIdentity); }
/// <summary> /// Reports that a performable item has failed and possible terminated early. /// </summary> /// <param name="actor">The actor.</param> /// <param name="performable">The performable item.</param> /// <param name="exception">An exception encountered whilst attempting to perform the item.</param> /// <param name="scenarioIdentity">The screenplay scenario identity.</param> public void Failure(Actors.INamed actor, Performables.IPerformable performable, Exception exception, Guid scenarioIdentity) { builder.RecordFailure(performable, exception, scenarioIdentity); }
/// <summary> /// Reports that a performable item has completed successfully. /// </summary> /// <param name="actor">The actor.</param> /// <param name="performable">The performable item.</param> /// <param name="scenarioIdentity">The screenplay scenario identity.</param> public void Success(Actors.INamed actor, Performables.IPerformable performable, Guid scenarioIdentity) { builder.RecordSuccess(performable, scenarioIdentity); }
/// <summary> /// Reports that a performable item has produced a result. /// </summary> /// <param name="actor">The actor.</param> /// <param name="performable">The performable item.</param> /// <param name="result">The result produced.</param> /// <param name="scenarioIdentity">The screenplay scenario identity.</param> public void Result(Actors.INamed actor, Performables.IPerformable performable, object result, Guid scenarioIdentity) { builder.RecordResult(performable, result, scenarioIdentity); }
/// <summary> /// Reports that a performable item has begun. /// </summary> /// <param name="actor">The actor.</param> /// <param name="performable">The performable item.</param> /// <param name="scenarioIdentity">The screenplay scenario identity.</param> public void Begin(Actors.INamed actor, Performables.IPerformable performable, Guid scenarioIdentity) { builder.BeginPerformance(actor, performable, scenarioIdentity); }
/// <summary> /// Reports that an actor has gained an ability. /// </summary> /// <param name="actor">The actor.</param> /// <param name="ability">The ability.</param> /// <param name="scenarioIdentity">The screenplay scenario identity.</param> public void GainAbility(Actors.INamed actor, Abilities.IAbility ability, Guid scenarioIdentity) { builder.GainAbility(actor, ability, scenarioIdentity); }
/// <summary> /// Gets the report of the current instance, for the given actor. /// </summary> /// <returns>The human-readable report text.</returns> /// <param name="actor">An actor for whom to write the report.</param> protected override string GetReport(Actors.INamed actor) => $"{actor.Name} is able to use a stopwatch";
protected override string GetReport(Actors.INamed actor) => $"{actor.Name} is able to add numbers together";