public override void OneTimeSetup() { _postprocessorInstanceType = typeof(Postprocessor <dynamic>); _postprocessorInstanceFixture = this.Create <Postprocessor <dynamic> >(true); _postprocessorInstance = _postprocessorInstanceFixture ?? this.Create <Postprocessor <dynamic> >(false); CurrentInstance = _postprocessorInstanceFixture; ConfigureIgnoringTests(); // Configure ignoring tests. }
/// <summary>Composes the supplied builders.</summary> /// <param name="builders">The builders to compose.</param> /// <returns> /// A new <see cref="ISpecimenBuilderNode" /> instance containing /// <paramref name="builders" /> as child nodes. /// </returns> public override ISpecimenBuilderNode Compose(IEnumerable <ISpecimenBuilder> builders) { var composedBuilder = CompositeSpecimenBuilder.ComposeIfMultiple(builders); var pp = new Postprocessor(composedBuilder, this.Command, this.Specification); #pragma warning disable 618 ObsoletedMemberShims.Postprocessor_SetAction(pp, ObsoletedMemberShims.Postprocessor_GetAction(this)); #pragma warning restore 618 return(pp); }
public static void Postprocessor_SetAction( Postprocessor postprocessor, Action <object, ISpecimenContext> action) { postprocessor.Action = action; }
public static Action <object, ISpecimenContext> Postprocessor_GetAction(Postprocessor postprocessor) { return(postprocessor.Action); }