public void RequestMatchRulesValidatorSuccessTest() { #region TestSetup var input = new { requestMatchRules = requestMatchRulesFake.Generate() }; #endregion var Target = new RequestMatchRulesValidator(); var Actual = Target.Validate(input.requestMatchRules); Assert.True(Actual.IsValid); }
public void RequestMatchRulesValidatorBodyRulesNullTest() { #region TestSetup var requestMatchRules = this.requestMatchRulesFake.Generate(); requestMatchRules.BodyRules = null; var input = new { requestMatchRules }; #endregion var Target = new RequestMatchRulesValidator(); var Actual = Target.Validate(input.requestMatchRules); Assert.False(Actual.IsValid); }