public MyHub(IDevTestRepository devTestRepository) // allow constructor to pass in a context instance { this.devTestRepository = devTestRepository; }
public DevTestService(IDevTestRepository devTestRepository, IUnitOfWork unitOfWork) { _devTestRepository = devTestRepository; _unitOfWork = unitOfWork; }
public MyHub() // create a new context instance { this.devTestRepository = new DevTestRepository(new test_monitorChangesEntities()); }