public void Validate_Valid() { ValidatorProvider p = new ValidatorProvider(); this.GetMessages(Data.Pdp.ViewProductPdf_Valid).ForEach(m => { ValidatorResult result = p.Validate(m); m.EventId.ShouldEqual(12); result.ShouldNotBeNull(); result.IsValid.ShouldBeTrue(); result.Messages.Any().ShouldBeFalse(); }); }
public void Validate_Invalid() { ValidatorProvider p = new ValidatorProvider(); this.GetMessages(Data.Cart.PrintCart_Invalid).ForEach(m => { ValidatorResult result = p.Validate(m); m.EventId.ShouldEqual(25); result.ShouldNotBeNull(); result.IsValid.ShouldBeFalse(); result.Messages.Any().ShouldBeTrue(); }); }
public void Validate_Valid() { ValidatorProvider p = new ValidatorProvider(); this.GetMessages(Data.Checkout.OrderPlaced_Valid).ForEach(m => { ValidatorResult result = p.Validate(m); m.EventId.ShouldEqual(28); result.ShouldNotBeNull(); result.IsValid.ShouldBeTrue(); result.Messages.Any().ShouldBeFalse(); }); }