public DatabaseFixture() { var options = new DbContextOptionsBuilder <UselessContext>() .UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()) .Options; Context = new UselessContext(options); }
public BaseRepository() { this.context = new UselessContext(); this.dbSet = this.context.Set <T>(); }
public GameService(UselessContext context, IMemoryCache cache, IMapper mapper) : base(context, cache, mapper) { }
public EntryService(UselessContext context, IMemoryCache cache, ITagService tagService, IMapper mapper) : base(context, cache, mapper) { _tagService = tagService; }
public CharacterService(UselessContext context, IMemoryCache cache, IMapper mapper, ISectionBuilderFactory sectionBuilderFactory) : base(context, cache, mapper) { _sectionBuilderFactory = sectionBuilderFactory; }
public Service(UselessContext context, IMemoryCache cache, IMapper mapper) { Context = context; Cache = cache; Mapper = mapper; }
public UserService(UselessContext context, UserManager <User> userManager, IMemoryCache cache, IMapper mapper) : base(context, cache, mapper) { _userManager = userManager; }