Skip to content

Commit 26cdc6c

Browse files
committed
Added documentation for number of errors in the ModelState (#33)
1 parent bfe9e44 commit 26cdc6c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/MyWebApi/Builders/Actions/ShouldHave/ShouldHaveModelState.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public IAndTestBuilder<TActionResult> ValidModelState()
5151
/// <summary>
5252
/// Checks whether the tested action's provided model state is not valid.
5353
/// </summary>
54+
/// <param name="numberOfErrors">Expected number of errors. If default null is provided, the test builder checks only if any errors are found.</param>
5455
/// <returns>Test builder with AndAlso method.</returns>
5556
public IAndTestBuilder<TActionResult> InvalidModelState(int? numberOfErrors = null)
5657
{

src/MyWebApi/Builders/Contracts/Actions/IShouldHaveTestBuilder.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public interface IShouldHaveTestBuilder<TActionResult> : IBaseTestBuilderWithAct
4242
/// <summary>
4343
/// Checks whether the tested action's provided model state is not valid.
4444
/// </summary>
45+
/// <param name="numberOfErrors">Expected number of errors. If default null is provided, the test builder checks only if any errors are found.</param>
4546
/// <returns>Test builder with AndAlso method.</returns>
4647
IAndTestBuilder<TActionResult> InvalidModelState(int? numberOfErrors = null);
4748
}

0 commit comments

Comments
 (0)