public void ShouldHaveErrors_Name_IsEmpty() { var command = CommandFactory.EditProductCommand(1, " ", "Description", 1, 189m); var validator = new EditProductCommandValidator(); validator.ShouldHaveValidationErrorFor(c => c.Name, command); }
public void ShouldHaveErrors_Id_lessThenOne(int id) { var command = CommandFactory.EditProductCommand(id, "Name", "Description", 1, 189m); var validator = new EditProductCommandValidator(); validator.ShouldHaveValidationErrorFor(c => c.Id, command); }