Example #1
0
        public void Constructing_WithModelContainingDateTimeProperty_AddsTheProperty()
        {
            const string propertyName = "Property";
            DateTime     value        = new DateTime(2020, 6, 28);

            var model = new ModelWithDateTimeProperty {
                Property = value
            };

            var graph = new HalGraph(model);

            Assert.Equal(expected: value, graph[propertyName]);
            Assert.Equal(expected: value.GetType(), actual: graph[propertyName].GetType());
        }
Example #2
0
 public ActionResult TestGetMethod(ModelWithDateTimeProperty arg)
 {
     return null;
 }