public Repository(IDataContextAsync context) { _context = context; // Temporarily for FakeDbContext, Unit Test and Fakes DbContext dbContext = context as DbContext; if (dbContext != null) { _dbSet = dbContext.Set <TEntity>(); } else { IFakeDbContext fakeContext = context as IFakeDbContext; if (fakeContext != null) { _dbSet = fakeContext.Set <TEntity>(); } } }
public StubDataRepository(IFakeDbContext context) { _context = context; }
public Dependency2(IFakeDbContext fakeDbContext) { FakeDbContext = fakeDbContext; }
public SomeTask(IFakeDbContext fakeDbContext, Dependency1 dependency1, Dependency2 dependency2) { FakeDbContext = fakeDbContext; Dependency1 = dependency1; Dependency2 = dependency2; }
public GetMessageBoardHandler(IFakeDbContext <MessageBoard> dbContext) => _dbContext = dbContext;