/// <summary> /// Initializes a new instance of the <see cref="SecuritySeeder" /> class. /// </summary> /// <param name="repository">The repository.</param> /// <param name="seederConfig">The seeder configuration.</param> /// <param name="roleManager">The role manager.</param> public SecuritySeeder(IRepository repository, ISeederConfig seederConfig, RoleManager <UserRole> roleManager) : base(repository, seederConfig) { this._roleManager = roleManager; this._driverPermissions = new List <string> { "users.read", "deliveries.read", "deliveries.write", "orders.read", "orders.write", "vehicles.read", "vehicles.write", "files.read", "files.write" }; this._clientPermissions = new List <string> { "users.read", "orders.read", "orders.write", "vehicles.read", "files.read", "files.write" }; }
/// <summary> /// Initializes a new instance of the <see cref="ExcelSeederBase" /> class. /// </summary> /// <param name="repository">The repository.</param> /// <param name="seederConfig">The seeder configuration.</param> protected ExcelSeederBase(IRepository repository, ISeederConfig seederConfig) : base(repository) { if (!string.IsNullOrEmpty(seederConfig?.FilePath) && File.Exists(seederConfig.FilePath)) { this._fileInfo = new FileInfo(seederConfig.FilePath); this.InitializeSource(); } }
public Seeder(IDomainDao domainDao, ISqsPublisher publisher, ISeederConfig config) { _domainDao = domainDao; _publisher = publisher; _config = config; }