1
Vote

Adding Mappings to DefaultMap during Hydrator instantiation has no effect

description

DefaultTypeMap mymap=new DefaultTypeMap();
mymap.Add(new Map<string>()
            .Matching(info => info.Name.ToLower() == "placeholderstring")
            .Using(new WebsiteGenerator()));
SimpleCustomer cust = new Hydrator<SimpleCustomer>(mymap).GetSingle();
Assert.IsNotNull(cust.placeholderstring);
Assert.IsTrue(IsWebsiteAddressValid(cust.placeholderstring));
 
Did not produce a url on the "placeholderstring" property as expected.

comments