public void Given_An_Invalid_CardRulingsTask_PageSize_Validation_Should_Fail(int pageSize) { // Arrange var inputModel = new CardRulingsTask { PageSize = pageSize }; // Act Action act = () => _sut.ShouldHaveValidationErrorFor(ci => ci.PageSize, inputModel); // Assert act.Invoke(); }
public void Given_An_Invalid_CardRulingTask_Category_Validation_Should_Fail(string category) { // Arrange var inputModel = new CardRulingsTask { Category = category }; // Act Action act = () => _sut.ShouldHaveValidationErrorFor(ci => ci.Category, inputModel); // Assert act.Invoke(); }