Ejemplo n.º 1
0
        private async Task CreateIncidentProducts(ISimsDbHost sims, SeedingConfigData seeder)
        {
            var products = seeder.GetNewProducts();
            var tasks    = products.Select(p => sims.Incidents.Products.Add(p.HostId, p));
            await Task.WhenAll(tasks);

            await sims.Incidents.Products.Fbos.Add(1, 1, (int)(FboTypes.Consignor | FboTypes.Exporter | FboTypes.Hospitality_service));

            await sims.Incidents.Products.Fbos.Add(1, 2, (int)FboTypes.Unknown);

            await sims.Incidents.Products.Fbos.Add(1, 3, (int)(FboTypes.Importer | FboTypes.Manufacturer));

            await sims.Incidents.Products.Fbos.Add(2, 4, (int)(FboTypes.Retailer | FboTypes.Manufacturer));

            await sims.Incidents.Products.Fbos.Add(2, 5, (int)(FboTypes.Packer_filler | FboTypes.Storage));

            await sims.Incidents.Products.Fbos.Add(2, 6, (int)FboTypes.Unknown);
        }