public async Task GetDataFlow() { DataFlowClient client = CreateClient(); await using DisposableDataFlow flow = await DisposableDataFlow.Create(client, this.Recording); DataFlowResource dataFlow = await client.GetDataFlowAsync(flow.Name); Assert.AreEqual(flow.Name, dataFlow.Name); }
public async Task TestGetDataFlow() { await foreach (var expectedDataFlow in DataFlowClient.GetDataFlowsByWorkspaceAsync()) { DataFlowResource actualDataFlow = await DataFlowClient.GetDataFlowAsync(expectedDataFlow.Name); Assert.AreEqual(expectedDataFlow.Name, actualDataFlow.Name); Assert.AreEqual(expectedDataFlow.Id, actualDataFlow.Id); } }
public async Task RenameDataFlow() { DataFlowClient client = CreateClient(); DataFlowResource resource = await DisposableDataFlow.CreateResource(client, this.Recording); string newFlowName = Recording.GenerateAssetName("DataFlow2"); DataFlowRenameDataFlowOperation renameOperation = await client.StartRenameDataFlowAsync(resource.Name, new ArtifactRenameRequest() { NewName = newFlowName }); await renameOperation.WaitForCompletionResponseAsync(); DataFlowResource dataFlow = await client.GetDataFlowAsync(newFlowName); Assert.AreEqual(newFlowName, dataFlow.Name); DataFlowDeleteDataFlowOperation operation = await client.StartDeleteDataFlowAsync(newFlowName); await operation.WaitForCompletionResponseAsync(); }