private async Task <LogicAppAction> PollForLogicAppActionAsync(string correlationId, string actionName, string logicAppName)
        {
            LogicAppRun logicAppRun = await LogicAppsProvider
                                      .LocatedAt(ResourceGroup, logicAppName, Authentication, Logger)
                                      .WithStartTime(DateTimeOffset.UtcNow.AddMinutes(-1))
                                      .WithCorrelationId(correlationId)
                                      .PollForSingleLogicAppRunAsync();

            Assert.True(logicAppRun.Actions.Count() != 0);
            LogicAppAction logicAppAction1 = logicAppRun.Actions.First(action => action.Name.Equals(actionName));

            Assert.NotNull(logicAppAction1);
            LogicAppAction logicAppAction = logicAppAction1;

            return(logicAppAction);
        }
        public async Task RunByNameLogicApp_WithoutTrigger_ReturnsCorrelationId()
        {
            // Arrange
            using (var logicApp = await LogicAppClient.CreateAsync(ResourceGroup, TestBaseLogicAppName, Authentication, Logger))
            {
                await using (await logicApp.TemporaryEnableAsync())
                {
                    // Act
                    await logicApp.RunByNameAsync(triggerName : "manual");

                    // Assert
                    LogicAppRun run = await LogicAppsProvider
                                      .LocatedAt(ResourceGroup, TestBaseLogicAppName, Authentication, Logger)
                                      .WithStartTime(DateTimeOffset.UtcNow.AddMinutes(-1))
                                      .PollForSingleLogicAppRunAsync();

                    Assert.Contains("Response", run.Actions.Select(action => action.Name));
                }
            }
        }