public async Task CanGetEmptyStatusListAsync()
        {
            server.Reset();

            var expected = new List <DurableFunctionStatus>();

            server
            .Given(
                Request
                .Create()
                .WithPath("/runtime/webhooks/durabletask/instances")
                .UsingGet()
                )
            .RespondWith(
                Response
                .Create()
                .WithStatusCode(200)
                .WithBody("[]")
                );

            var client = new DurableFunctionClient(server.Ports[0]);
            var actual = await client.GetAllFunctionStatuses();

            actual.Should().BeEquivalentTo(expected);
        }
        public async Task CanGetListOfStatusWithOneItem()
        {
            server.Reset();

            var expected = new List <DurableFunctionStatus>()
            {
                new DurableFunctionStatus()
                {
                    Name          = "MyDurableOrchestrator",
                    InstanceId    = "39432fc3815f4900a0a4357febec5012",
                    RuntimeStatus = "Running"
                }
            };

            server
            .Given(
                Request
                .Create()
                .WithPath("/runtime/webhooks/durabletask/instances")
                .UsingGet()
                )
            .RespondWith(
                Response
                .Create()
                .WithStatusCode(200)
                .WithBody(@"[
                            {
                                ""name"": ""MyDurableOrchestrator"",
                                ""instanceId"": ""39432fc3815f4900a0a4357febec5012"",
                                ""runtimeStatus"": ""Running"",
                                ""input"": [],
                                ""customStatus"": null,
                                ""output"": null,
                                ""createdTime"": ""2020-11-04T21:44:45Z"",
                                ""lastUpdatedTime"": ""2020-11-04T21:44:46Z""
                            }
                        ]")
                );

            var client = new DurableFunctionClient(server.Ports[0]);
            var actual = await client.GetAllFunctionStatuses();

            actual.Should().BeEquivalentTo(expected);
        }