public SampleRepository(VerticalLabTestPostgresDbContext context,
                         SieveProcessor sieveProcessor)
 {
     _context = context
                ?? throw new ArgumentNullException(nameof(context));
     _sieveProcessor = sieveProcessor ??
                       throw new ArgumentNullException(nameof(sieveProcessor));
 }
示例#2
0
        public static void SeedSamplePatientData(VerticalLabTestPostgresDbContext context)
        {
            if (!context.Patients.Any())
            {
                context.Patients.Add(new AutoFaker <Patient>());
                context.Patients.Add(new AutoFaker <Patient>());
                context.Patients.Add(new AutoFaker <Patient>());

                context.SaveChanges();
            }
        }
 public Handler(VerticalLabTestPostgresDbContext db, IMapper mapper)
 {
     _mapper = mapper;
     _db     = db;
 }
 public Handler(VerticalLabTestPostgresDbContext db)
 {
     _db = db;
 }
 public Handler(VerticalLabTestPostgresDbContext db, IMapper mapper, SieveProcessor sieveProcessor)
 {
     _mapper         = mapper;
     _db             = db;
     _sieveProcessor = sieveProcessor;
 }