public void Given() { _cache = new InMemoryCache(); _urlRegistry = new TestUrlRegistry(); _dbContext = new DbTestContext(); Setup(); _search = new SearchEndpoint(new ISearchPlugin[] { new SearchOnPosts(_cache, _urlRegistry, GetContentFactory), new SearchOnTags(_cache, _urlRegistry, GetTagFactory), new SearchOnTime(_cache, _urlRegistry, ()=>DBContext.Session) }); }
public void TestInitialize() { _context = new DbTestContext(Settings.Default.MainConnectionString); _repository = new BrokerRepository(_context.Connection); }
private DocumentDtoInternal GetTestDocumentDtoFromContext(int id) { var dbTestContext = DbTestContext.GenerateContextWithData(); return(_mapper.Map <DocumentDtoInternal>(dbTestContext.Documents.Single(d => d.Id == id))); }
public IncludeDynamicQueryFails() { DbTestContext = DbHelper.CreateInMemoryContext(); DbHelper.AddDBDatas(DbTestContext); }
public CheckoutRepository(DbTestContext context) { _context = context; }
public DataService(DbTestContext service) { _service = service; }
public PermissionService(DbTestContext service) : base(service) { _service = service; }
public void TestInitialize() { _context = new DbTestContext(Settings.Default.MainConnectionString); _fixture = new Fixture(); _repository = new AdminRepository(_context.Connection); }
/// <summary> /// /// </summary> public VehicleApiController(DbTestContext context) { _context = context; }