public void ShouldNotHaveErrors_Name_IsSpecified() { var command = CommandFactory.EditProductCommand(1, "Name", "Description", 1, 189m); var validator = new EditProductCommandValidator(); validator.ShouldNotHaveValidationErrorFor(c => c.Name, command); }
public void ShouldNotHaveErrors_Id_GreaterThenZero() { var command = CommandFactory.EditProductCommand(1, "Name", "Description", 1, 189m); var validator = new EditProductCommandValidator(); validator.ShouldNotHaveValidationErrorFor(c => c.Id, command); }