Esempio n. 1
0
 public void Configure(ITestHelperContext config)
 {
     config.Register(() => new ExamplePoco1
     {
         Name    = config.Generate <string>(),
         WebSite = new Uri("http://example.com")
     });
 }
Esempio n. 2
0
 public void Configure(ITestHelperContext config)
 {
     config.Register(() => new ExamplePoco2
     {
         Name = config.Generate <string>(),
         Id   = 5
     });
 }
Esempio n. 3
0
        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());
        }
Esempio n. 4
0
 public void Configure(ITestHelperContext x)
 {
     x.Register(() => ActorPath.Parse($"akka://user/{Guid.NewGuid()}"));
 }
 public void Configure(ITestHelperContext config)
 {
     config.Register(() => DateTime.MaxValue);
 }