Skip to content

Commit afee037

Browse files
Add IncludingInherited method in IBaseAttributesTestBuilder
1 parent 69b0b6c commit afee037

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

src/MyTested.AspNetCore.Mvc.Abstractions/Builders/Contracts/Attributes/IBaseAttributesTestBuilder.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,12 @@ TAttributesTestBuilder PassingFor<TAttribute>(Action<TAttribute> assertions)
4141
/// <returns>The same attributes test builder.</returns>
4242
TAttributesTestBuilder PassingFor<TAttribute>(Func<TAttribute, bool> predicate)
4343
where TAttribute : Attribute;
44+
45+
46+
/// <summary>
47+
/// Adds inherited attributes to the attributes.
48+
/// </summary>
49+
/// <returns>The same attributes test builder.</returns>
50+
TAttributesTestBuilder IncludingInherited();
4451
}
4552
}

src/MyTested.AspNetCore.Mvc.Controllers/Builders/Attributes/ActionAttributesTestBuilder.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,8 @@ public override void ThrowNewAttributeAssertionException(string expectedValue, s
3636
this.TestContext.ExceptionMessagePrefix,
3737
expectedValue,
3838
actualValue));
39+
40+
public IAndActionAttributesTestBuilder IncludingInherited()
41+
=> throw new System.NotImplementedException();
3942
}
4043
}

src/MyTested.AspNetCore.Mvc.Controllers/Builders/Attributes/ControllerAttributesTestBuilder.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,8 @@ public ControllerAttributesTestBuilder(ControllerTestContext testContext)
2626

2727
/// <inheritdoc />
2828
public IControllerAttributesTestBuilder AndAlso() => this;
29+
30+
public IAndControllerAttributesTestBuilder IncludingInherited()
31+
=> throw new System.NotImplementedException();
2932
}
3033
}

src/MyTested.AspNetCore.Mvc.ViewComponents/Builders/Attributes/ViewComponentAttributesTestBuilder.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,8 @@ public ViewComponentAttributesTestBuilder(ComponentTestContext testContext)
2424

2525
/// <inheritdoc />
2626
public IViewComponentAttributesTestBuilder AndAlso() => this;
27+
28+
public IAndViewComponentAttributesTestBuilder IncludingInherited()
29+
=> throw new System.NotImplementedException();
2730
}
2831
}

0 commit comments

Comments
 (0)