public void ReadValue_reads_lowercase_id_field()
        {
            var testModel = new TestModel4
            {
                id = 1000
            };

            var id = IdReader.ReadValue(testModel);

            id.Should().Be(testModel.id);
        }
Exemple #2
0
 public ActionResult Test4(TestModel4 test)
 {
     return(TestResult());
 }
Exemple #3
0
 private void AddModel4()
 {
     _model4 = new TestModel4();
     _router.AddModel(_model4.Id, _model4);
 }
		public IHttpActionResult TestModel4(TestModel4 model) {
			return OutputErrors();
		}
        public void ReadValue_reads_lowercase_id_field()
        {
            var testModel = new TestModel4
            {
                id = 1000
            };

            var id = IdReader.ReadValue(testModel);
            id.Should().Be(testModel.id);
        }