예제 #1
0
 protected override void Customize(ICustomizeFactoryOptions <Person> customization)
 {
     customization
     .Set(x => x.FirstName = "Albert")
     .Set(x => x.LastName  = "Einstein")
     .Set(x => x.Age       = 56);
 }
예제 #2
0
 protected override void Customize(ICustomizeFactoryOptions <Ship> customization)
 {
     customization
     .Set(x => x.Name = _shipName)
     .Do(_callback);
 }
 protected override void Customize(ICustomizeFactoryOptions <SomeClass> customization)
 {
     customization.Set(x => x.Name = "John Doe");
 }