public void Configure(ITestHelperContext config) { config.Register(() => new ExamplePoco1 { Name = config.Generate <string>(), WebSite = new Uri("http://example.com") }); }
public void Configure(ITestHelperContext config) { config.Register(() => new ExamplePoco2 { Name = config.Generate <string>(), Id = 5 }); }
public void Configure(ITestHelperContext x) { // Unmapped handlers x.Register(() => x .Generate <Dictionary <(Type, Type), Func <object, object> > >() .ToImmutableDictionary()); //Mapped handlers x.Register(() => x .Generate <Dictionary <Type, Dictionary <Type, Func <object, object> > > >() .Select(pair => new KeyValuePair <Type, ImmutableDictionary <Type, Func <object, object> > >( pair.Key, pair.Value.ToImmutableDictionary())) .ToImmutableDictionary()); //Just actor handlers x.Register(() => x .Generate <Dictionary <Type, Func <object, object> > >() .ToImmutableDictionary()); }