Пример #1
0
        public static LandmarksDbContext GetContext()
        {
            var options = new DbContextOptionsBuilder <LandmarksDbContext>()
                          .UseInMemoryDatabase(Guid.NewGuid().ToString())
                          .Options;

            var dbContext = new LandmarksDbContext(options);

            return(dbContext);
        }
Пример #2
0
 public LandmarkService(LandmarksDbContext dbContext, IMapper mapper, IHostingEnvironment environment)
     : base(dbContext, mapper)
 {
     this._environment = environment;
 }
Пример #3
0
 public RankingService(LandmarksDbContext dbContext, IMapper mapper)
     : base(dbContext, mapper)
 {
 }
Пример #4
0
 public void InitializeTests()
 {
     this._dbContext = MockDbContext.GetContext();
     this._mapper    = MockAutoMapper.GetMapper();
 }
Пример #5
0
 public VisitationService(LandmarksDbContext dbContext, IMapper mapper)
     : base(dbContext, mapper)
 {
 }
Пример #6
0
 public MainService(LandmarksDbContext dbContext, IMapper mapper)
     : base(dbContext, mapper)
 {
 }
Пример #7
0
 public CategoryService(LandmarksDbContext dbContext, IMapper mapper)
     : base(dbContext, mapper)
 {
 }
Пример #8
0
 protected BaseService(LandmarksDbContext dbContext, IMapper mapper)
 {
     this.DbContext = dbContext;
     this.Mapper    = mapper;
 }
Пример #9
0
 public CommentsService(LandmarksDbContext dbContext, IMapper mapper)
     : base(dbContext, mapper)
 {
 }