예제 #1
0
 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.
 }
예제 #2
0
        /// <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);
        }
예제 #3
0
 public static void Postprocessor_SetAction(
     Postprocessor postprocessor, Action <object, ISpecimenContext> action)
 {
     postprocessor.Action = action;
 }
예제 #4
0
 public static Action <object, ISpecimenContext> Postprocessor_GetAction(Postprocessor postprocessor)
 {
     return(postprocessor.Action);
 }