You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd be nice if I could create this:
Builder<IFoo>.CreateNew().WithConstructor(() => new Foo()).Build();
Foo implements IFoo.
The same holds for lists:
var list = Builder<IFoo>.CreateListOfSize(1).WhereAll().AreConstructedUsing(()
=> new Foo()).Build();
Currently, I have to cast the List<Foo>:
var list = Builder<Foo>.CreateListOfSize(10).Build().Cast<IFoo>.ToList();
Original issue reported on code.google.com by urs.enz...@gmail.com on 19 Oct 2011 at 1:48
The text was updated successfully, but these errors were encountered:
Are you sure you're not looking for a mocking framework? I'm not quite sure I
understand why a POCO (Plain Old CLR Object) should have an interface. I'm
curious to know what you're doing that has led you to need interfaces on your
POCOs.
Original comment by joshuajr...@gmail.com on 30 Nov 2011 at 10:42
No, I'm not looking for a mocking framework :-)
But, giving this a second thought, the current solution is just badly designed.
It really should never have been an interface at all. Just needed some distance
to realise that.
Thanks. Please close this issue.
Cheers
Urs
Original comment by urs.enz...@gmail.com on 1 Dec 2011 at 2:41
Original issue reported on code.google.com by
urs.enz...@gmail.com
on 19 Oct 2011 at 1:48The text was updated successfully, but these errors were encountered: