예제 #1
0
        public DatabaseFixture()
        {
            var options = new DbContextOptionsBuilder <UselessContext>()
                          .UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString())
                          .Options;

            Context = new UselessContext(options);
        }
예제 #2
0
 public BaseRepository()
 {
     this.context = new UselessContext();
     this.dbSet   = this.context.Set <T>();
 }
예제 #3
0
 public GameService(UselessContext context, IMemoryCache cache, IMapper mapper) : base(context, cache, mapper)
 {
 }
예제 #4
0
 public EntryService(UselessContext context, IMemoryCache cache, ITagService tagService, IMapper mapper) : base(context, cache, mapper)
 {
     _tagService = tagService;
 }
예제 #5
0
 public CharacterService(UselessContext context, IMemoryCache cache, IMapper mapper, ISectionBuilderFactory sectionBuilderFactory) : base(context, cache, mapper)
 {
     _sectionBuilderFactory = sectionBuilderFactory;
 }
예제 #6
0
 public Service(UselessContext context, IMemoryCache cache, IMapper mapper)
 {
     Context = context;
     Cache   = cache;
     Mapper  = mapper;
 }
예제 #7
0
 public UserService(UselessContext context, UserManager <User> userManager, IMemoryCache cache, IMapper mapper) : base(context, cache, mapper)
 {
     _userManager = userManager;
 }