public void Initialize() { holdingRepo = new InMemoryRepository <Holding>(); branchRepo = new InMemoryRepository <Branch>(); controller = new HoldingsController(holdingRepo, branchRepo); }
public HoldingsControllerTest(DbContextFixture fixture) { fixture.Seed(); context = new LibraryContext(fixture.ContextOptions); controller = new HoldingsController(context); }