public async Task AdminTool_ApproveProbe_AllTypesAsync()
        {
            Func <int, ProbeApproval, string, Task> execute = async(id, action, str) =>
            {
                var urls = new[]
                {
                    UnitRequest.GetObjectProperty(id, "authorized"),
                    UnitRequest.Get($"api/probestate.htm?id={id}&action={str}")
                };

                await ExecuteAsync(async c => await c.ApproveProbeAsync(id, action), urls);
            };

            await execute(1001, ProbeApproval.Allow, "allow");
            await execute(1001, ProbeApproval.Deny, "deny");
            await execute(1001, ProbeApproval.AllowAndDiscover, "allowanddiscover");
        }
        public void AdminTool_ApproveProbe_AllTypes()
        {
            Action <int, ProbeApproval, string> execute = (id, action, str) =>
            {
                var urls = new[]
                {
                    UnitRequest.GetObjectProperty(id, "authorized"),
                    UnitRequest.Get($"api/probestate.htm?id={id}&action={str}")
                };

                Execute(c => c.ApproveProbe(id, action), urls);
            };

            execute(1001, ProbeApproval.Allow, "allow");
            execute(1001, ProbeApproval.Deny, "deny");
            execute(1001, ProbeApproval.AllowAndDiscover, "allowanddiscover");
        }