Ejemplo n.º 1
0
        public async Task TestRequestFlows()
        {
            IList <Flow> flows = await _client.GetFlows();

            Assert.NotNull(flows);
            Assert.Greater(flows.Count, 3);
            AssertFlow(flows.First());
        }
Ejemplo n.º 2
0
        public async Task RequestFlows()
        {
            _flows.Clear();

            IList <Flow> flows = await _client.GetFlows();

            foreach (Flow flow in flows)
            {
                string status = flow.Enabled ? "Enabled" : "Disabled";
                _flows.Add(new Info {
                    Key = flow.Id, Value = flow.Name, Status = status
                });
            }

            NotifyPropertyChanged(nameof(Flows));
        }