Closed GoogleCodeExporter closed 9 years ago
Hi Michael
NBuilder is intended only for use with c# 3.0 / vs 2008.
The fluent interface, with the exception of only a few core methods such as
.Build(),
is implemented using extension methods.
WithConstructorArgs is an extension method of ISingleObjectBuilder.
To be honest I've never even tried it myself in vs2005, I'm surprised it
actually
compiles at all!
If it does compile, perhaps you could try to get around it by invoking the
extension
methods directly:
ISingleObjectBuilder<Product> builder = Builder<Product>.CreateNew();
SingleObjectBuilderExtensions.WithConstructorArgs(builder, arg1, arg2);
Original comment by garethdo...@googlemail.com
on 16 Sep 2009 at 7:51
Original issue reported on code.google.com by
michael....@gmail.com
on 17 Aug 2009 at 11:24