示例#1
0
 public PatientFixture(DatabaseFixture database)
 {
     _database = database;
     _context  = _database.CreateContext;
     _context.Set <Patient>().RemoveRange(_context.Set <Patient>());
     _context.SaveChanges();
 }
示例#2
0
 public DatabaseFixture()
 {
     _factory  = new MockCareBreezeDbContextFactory();
     Context   = _factory.Create();
     _basePath = _factory.BasePath;
     _filePath = Path.Combine(_basePath, "InitializationData.json");
     Setup();
 }
示例#3
0
 public ConsultationFixture(DatabaseFixture database)
 {
     _database = database;
     _context  = database.CreateContext;
     // Clear all prior each test
     _context.Set <Consultation>().RemoveRange(_context.Set <Consultation>());
     _context.SaveChanges();
 }
示例#4
0
 public QueryHandler(CareBreezeDbContext context)
 {
     _context = context;
 }
示例#5
0
 public Handler(CareBreezeDbContext context, IMediator mediator)
 {
     _context  = context;
     _mediator = mediator;
 }
 public JsonDataImportPersister(CareBreezeDbContext context, IDataImportReader reader)
 {
     _context = context;
     _reader  = reader;
 }
示例#7
0
 public PatientRegisteredHandler(CareBreezeDbContext context)
 {
     _context = context;
 }
 public JsonDataFileImporterFixture()
 {
     _factory = new MockCareBreezeDbContextFactory();
     _context = _factory.Create();
 }