Beispiel #1
0
 private static IWorkspace GetWorkspace()
 {
     return(new Workspace(
                subscriptionId: TestConstants.SubscriptionId,
                resourceGroupName: TestConstants.ResourceGroupName,
                workspaceName: TestConstants.WorkspaceName)
     {
         // Mock jobs client (only needed for unit tests)
         JobsClient = new QuantumClient(MockHelper.GetHttpClientMock(), true)
         {
             SubscriptionId = TestConstants.SubscriptionId,
             ResourceGroupName = TestConstants.ResourceGroupName,
             WorkspaceName = TestConstants.WorkspaceName,
             BaseUri = new Uri(TestConstants.Endpoint),
         }.Jobs,
     });
 }
 public MockQuantumClient(MockHelper mock)
     : base(mock.GetHttpClientMock(), true)
 {
 }