This project is read-only.
1
Vote

Subsequent calls to Invoke overwrite previous calls

description

Trying to add a number of key value pairs so I make multiple calls to Invoke
So the POCO I'm trying to generate has an add(string key, string value) method
...
                    .Invoke(
                         c =>
                         c.Add(Use.Source<string, RandomStringSource>(3, 3),
                               Use.Source<String, StreetSource>()))
                     .Invoke(
                         c =>
                         c.Add(Use.Source<string, RandomStringSource>(3, 4),
                               Use.Source<String, CitySource>()))
                     .Invoke(
                         c =>
                         c.Add(Use.Source<string, RandomStringSource>(3, 5),
                               Use.Source<string, IntegerSourceAsString>(0,99999)));
...

but it appears as though only the final call to Invoke actually gets invoked.

Thanks in advance.

comments