Ejemplo n.º 1
0
 private void RegisterDefaultInterceptors(ISeedOptions options)
 {
     AddInterceptor(SeedType.FirstName, new Interceptors.Name.FirstNameInterceptor(options.NameProvder));
     AddInterceptor(SeedType.LastName, new Interceptors.Name.LastNameInterceptor(options.NameProvder));
     AddInterceptor(SeedType.FullName, new Interceptors.Name.FullNameDataProvider(options.NameProvder));
 }
Ejemplo n.º 2
0
 public SeedProcessor(ISeedOptions options)
 {
     _catalog          = new InterceptorCatalog(options);
     _encounteredTypes = new Stack <Type>();
 }
Ejemplo n.º 3
0
 public InterceptorCatalog(ISeedOptions options)
 {
     _catalog = new Dictionary <SeedType, IPropertyValueInterceptor>();
     RegisterDefaultInterceptors(options);
 }