Beispiel #1
0
        private void SeedTenderMedications(TenderDbContext context)
        {
            context.Add(new TenderMedication
            {
                MedicationId             = 1,
                TenderID                 = 1,
                TenderMedicationQuantity = 100
            });
            context.Add(new TenderMedication
            {
                MedicationId             = 2,
                TenderID                 = 1,
                TenderMedicationQuantity = 500
            });
            context.Add(new TenderMedication
            {
                MedicationId             = 3,
                TenderID                 = 1,
                TenderMedicationQuantity = 300
            });
            context.Add(new TenderMedication
            {
                MedicationId             = 7,
                TenderID                 = 1,
                TenderMedicationQuantity = 50
            });
            context.Add(new TenderMedication
            {
                MedicationId             = 10,
                TenderID                 = 2,
                TenderMedicationQuantity = 100
            });
            context.Add(new TenderMedication
            {
                MedicationId             = 11,
                TenderID                 = 2,
                TenderMedicationQuantity = 150
            });
            context.Add(new TenderMedication
            {
                MedicationId             = 48,
                TenderID                 = 3,
                TenderMedicationQuantity = 169
            });
            context.Add(new TenderMedication
            {
                MedicationId             = 36,
                TenderID                 = 4,
                TenderMedicationQuantity = 210
            });

            context.SaveChanges();
        }
Beispiel #2
0
        private void SeedTenders(TenderDbContext context)
        {
            context.Add(new Tender
            {
                //Id = 1,
                StartDate         = new DateTime(2020, 12, 30),
                EndDate           = new DateTime(2021, 5, 1),
                TenderDescription = "Tender for Xanax, Diazepam, Panadon and Flobian",
                TenderStatus      = TenderStatus.Active,
            });
            context.Add(new Tender
            {
                //Id = 2,
                StartDate         = new DateTime(2020, 12, 15),
                EndDate           = new DateTime(2021, 6, 1),
                TenderDescription = "Tender for Bensedin and Lexilium",
                TenderStatus      = TenderStatus.Active,
            });
            context.Add(new Tender
            {
                //Id = 3,
                StartDate         = new DateTime(2020, 12, 1),
                EndDate           = new DateTime(2021, 1, 1),
                TenderDescription = "Tender for Adderall",
                TenderStatus      = TenderStatus.Pending,
            });
            context.Add(new Tender
            {
                //Id = 4,
                StartDate           = new DateTime(2020, 11, 15),
                EndDate             = new DateTime(2021, 1, 2),
                TenderDescription   = "Tender for Andol",
                TenderStatus        = TenderStatus.Finished,
                WinnerTenderOfferId = 7,
            });

            context.SaveChanges();
        }
Beispiel #3
0
        private void SeedTenderOffers(TenderDbContext context)
        {
            context.Add(new TenderOffer
            {
                //Id = 1,
                TenderId         = 4,
                Pharmacy         = "Jankovic",
                PharmacyEMail    = "*****@*****.**",
                TenderOfferPrice = 5858f
            });
            context.Add(new TenderOffer
            {
                //Id = 2,
                TenderId         = 4,
                Pharmacy         = "Benu",
                PharmacyEMail    = "*****@*****.**",
                TenderOfferPrice = 5600f
            });
            context.Add(new TenderOffer
            {
                //Id = 3,
                TenderId         = 3,
                Pharmacy         = "Jankovic",
                PharmacyEMail    = "*****@*****.**",
                TenderOfferPrice = 950f
            });
            context.Add(new TenderOffer
            {
                //Id = 4,
                TenderId         = 3,
                Pharmacy         = "Liman",
                PharmacyEMail    = "*****@*****.**",
                TenderOfferPrice = 945f
            });
            context.Add(new TenderOffer
            {
                //Id = 5,
                TenderId         = 2,
                Pharmacy         = "Benu",
                PharmacyEMail    = "*****@*****.**",
                TenderOfferPrice = 500f
            });
            context.Add(new TenderOffer
            {
                //Id = 6,
                TenderId         = 2,
                Pharmacy         = "Liman",
                PharmacyEMail    = "*****@*****.**",
                TenderOfferPrice = 600f
            });
            context.Add(new TenderOffer
            {
                //Id = 7,
                TenderId         = 2,
                Pharmacy         = "Benu",
                PharmacyEMail    = "*****@*****.**",
                TenderOfferPrice = 630f
            });
            context.Add(new TenderOffer
            {
                //Id = 8,
                TenderId         = 2,
                Pharmacy         = "Liman",
                PharmacyEMail    = "*****@*****.**",
                TenderOfferPrice = 650f
            });
            context.Add(new TenderOffer
            {
                //Id = 9,
                TenderId         = 1,
                Pharmacy         = "Benu",
                PharmacyEMail    = "*****@*****.**",
                TenderOfferPrice = 300f
            });
            context.Add(new TenderOffer
            {
                //Id = 10,
                TenderId         = 1,
                Pharmacy         = "Liman",
                PharmacyEMail    = "*****@*****.**",
                TenderOfferPrice = 240f
            });

            context.SaveChanges();
        }