What am I doing wrong?

Nov 5, 2013 at 8:57 PM
var value = Fabricator.Generate<string>();
throws an exception, no setup or custom convention, this is straight out of the box
Nov 21, 2013 at 4:06 AM
You need to create a class for this.
public class SampleData
{
public string Value { get; set; }
}
Then use it like so:
var value = Fabricator.Generate<SampleData>().Select(x => x.Value).FirstOrDefault();
Rick