예제 #1
0
 public void naming_strategy_negative_is_a_passthru()
 {
     // Not sure what a null will do to us in the model binding,
     // so I'm having it return the property name
     HttpRequestHeaders.HeaderDictionaryNameForProperty("something")
     .ShouldEqual("something");
 }
예제 #2
0
        public void naming_strategy_positive()
        {
            var propertyInfo = ReflectionHelper.GetProperty <ETagDto>(x => x.IfModifiedSince);

            HttpRequestHeaders.HeaderDictionaryNameForProperty(propertyInfo.Name)
            .ShouldEqual("If-Modified-Since");
        }