public void Model_StoreBuyAndKeep_Valid_ExpectTypeRquiredErrors() { var model = new StoreBuyAndKeepModel { Cost = 0 }; var results = TestModelHelper.Validate(model); Assert.AreEqual(1, results.Count); Assert.AreEqual("The Title field is required.", results[0].ErrorMessage); }
public void Model_StoreBuyAndKeep_Valid_Exists() { var model = new StoreBuyAndKeepModel(); Assert.IsNotNull(model); }