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)); }
public SeedProcessor(ISeedOptions options) { _catalog = new InterceptorCatalog(options); _encounteredTypes = new Stack <Type>(); }
public InterceptorCatalog(ISeedOptions options) { _catalog = new Dictionary <SeedType, IPropertyValueInterceptor>(); RegisterDefaultInterceptors(options); }