Esempio n. 1
0
 protected override void ConfigureDefinition(
     FlowDefinition <TestCanSpecifyFlowResponseBindingsRequest, TestCanSpecifyFlowResponseBindingsResponse> flowDefinition)
 {
     flowDefinition
     .Finalize(final => final
               .BindValue(res => res.NameMapped, "NameMap")
               .BindValue(res => res.PropertyMapped, "PropertyMap", (string s) => s.Length)
               .BindValues(res => res.DictionaryDefault, "DictionaryDefault1", "DictionaryDefault2")
               .BindValues(res => res.DictionaryNameMap,
                           new Dictionary <string, string>
     {
         { "DictionaryNameMap1", "DictionaryNameMapped1" },
         { "DictionaryNameMap2", "DictionaryNameMapped2" }
     })
               .BindValues(res => res.DictionaryPropertyMap, new FlowValueListSelector(
                               new Dictionary <string, string>()
     {
         { "DictionaryPropertyMap1", "DictionaryPropertyMapped1" },
         { "DictionaryPropertyMap2", "DictionaryPropertyMapped2" }
     }), (string s) => s.Length)
               );
 }