public void Setup() { var helper = new Mock <IHelper>(); helper.Setup(h => h.GetDBContext(It.IsAny <int>())) .Returns(new RemoteDbContext(ConnectionSetup.GetConnection())); ConnectionSetup.DeployDatabase(helper.Object); documentQueueRepository = new DocumentQueueRepository(helper.Object); }
public void Setup() { this.helper = new Mock <IHelper>(); this.helper.Setup(h => h.GetDBContext(It.IsAny <int>())) .Returns(new RemoteDbContext(ConnectionSetup.GetConnection())); }