private void CheckActionResultTestBuilder <TActionResult>( IActionResultTestBuilder <TActionResult> actionResultTestBuilder, string expectedActionName) { this.CheckActionName(actionResultTestBuilder, expectedActionName); var actionResult = actionResultTestBuilder.AndProvideTheActionResult(); Assert.IsNotNull(actionResult); Assert.IsAssignableFrom <OkResult>(actionResult); }
private void CheckActionResultTestBuilder <TActionResult>( IActionResultTestBuilder <TActionResult> actionResultTestBuilder, string expectedActionName) { this.CheckActionName(actionResultTestBuilder, expectedActionName); actionResultTestBuilder .ShouldPassForThe <IActionResult>(actionResult => { Assert.NotNull(actionResult); Assert.IsAssignableFrom <OkResult>(actionResult); }); }