Exemplo n.º 1
0
        private ObjectSearchContext GetContext()
        {
            var contextOptions = new DbContextOptionsBuilder <ObjectSearchContext>()
                                 .UseSqlServer("Server=.\\SQLEXPRESS2017; Initial Catalog=ObjectSearchDB; Trusted_Connection=true;")
                                 .Options;
            var context = new ObjectSearchContext(contextOptions);

            // create and configure context
            // see: https://docs.microsoft.com/en-us/ef/core/miscellaneous/testing/
            return(context);
        }
 public MissionRepository(ObjectSearchContext objectSearchContext)
 {
     _objectSearchContext = objectSearchContext;
 }
Exemplo n.º 3
0
 public UserRepository(ObjectSearchContext objectSearchContext)
 {
     _objectSearchContext = objectSearchContext;
 }
Exemplo n.º 4
0
 public TargetRepository(ObjectSearchContext objectSearchContext)
 {
     _objectSearchContext = objectSearchContext;
 }
Exemplo n.º 5
0
 public ImageRepository(ObjectSearchContext objectSearchContext)
 {
     _objectSearchContext = objectSearchContext;
 }
 public OperationsRepository(ObjectSearchContext objectSearchContext)
 {
     _objectSearchContext = objectSearchContext;
 }
 public DetectedObjectRepository(ObjectSearchContext objectSearchContext)
 {
     _objectSearchContext = objectSearchContext;
 }