/// <inheritdoc /> public IBaseTestBuilderWithViewComponent Attributes(Action<IViewComponentAttributesTestBuilder> attributesTestBuilder) { var newAttributesTestBuilder = new ViewComponentAttributesTestBuilder(this.TestContext); attributesTestBuilder(newAttributesTestBuilder); AttributesValidator.ValidateAttributes( this.ViewComponentAttributes, newAttributesTestBuilder, this.ThrowNewAttributeAssertionException); return this; }
/// <inheritdoc /> public IBaseTestBuilderWithViewComponent Attributes(Action <IViewComponentAttributesTestBuilder> attributesTestBuilder) { var newAttributesTestBuilder = new ViewComponentAttributesTestBuilder(this.TestContext); attributesTestBuilder(newAttributesTestBuilder); AttributesValidator.ValidateAttributes( this.ViewComponentAttributes, newAttributesTestBuilder, this.ThrowNewAttributeAssertionException); return(this); }
/// <inheritdoc /> public IAndViewComponentResultTestBuilder <TInvocationResult> Attributes( Action <IViewComponentAttributesTestBuilder> attributesTestBuilder) { var newAttributesTestBuilder = new ViewComponentAttributesTestBuilder(this.TestContext); attributesTestBuilder(newAttributesTestBuilder); AttributesValidator.ValidateAttributes( this.TestContext.ComponentAttributes, newAttributesTestBuilder, this.ThrowNewAttributeAssertionException); return(this.Builder); }