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