public static LandmarksDbContext GetContext() { var options = new DbContextOptionsBuilder <LandmarksDbContext>() .UseInMemoryDatabase(Guid.NewGuid().ToString()) .Options; var dbContext = new LandmarksDbContext(options); return(dbContext); }
public LandmarkService(LandmarksDbContext dbContext, IMapper mapper, IHostingEnvironment environment) : base(dbContext, mapper) { this._environment = environment; }
public RankingService(LandmarksDbContext dbContext, IMapper mapper) : base(dbContext, mapper) { }
public void InitializeTests() { this._dbContext = MockDbContext.GetContext(); this._mapper = MockAutoMapper.GetMapper(); }
public VisitationService(LandmarksDbContext dbContext, IMapper mapper) : base(dbContext, mapper) { }
public MainService(LandmarksDbContext dbContext, IMapper mapper) : base(dbContext, mapper) { }
public CategoryService(LandmarksDbContext dbContext, IMapper mapper) : base(dbContext, mapper) { }
protected BaseService(LandmarksDbContext dbContext, IMapper mapper) { this.DbContext = dbContext; this.Mapper = mapper; }
public CommentsService(LandmarksDbContext dbContext, IMapper mapper) : base(dbContext, mapper) { }