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);
        }
Exemplo n.º 2
0
 public void Setup()
 {
     this.helper = new Mock <IHelper>();
     this.helper.Setup(h => h.GetDBContext(It.IsAny <int>()))
     .Returns(new RemoteDbContext(ConnectionSetup.GetConnection()));
 }