コード例 #1
0
        public async void Should_run_and_wait_for_a_while()
        {
            using (var client = new FooidityClient("sturjs8z35kkpngz8dnphkd9ia7piuzcgcioi1n37uzoce4se15o"))
            {
                await client.Connect("http://localhost:1196/");

                Console.WriteLine("Connected");

                ICodeSwitch <Feature_Sample> enabledSwitch = new CodeFeatureStateCodeSwitch <Feature_Sample>(client);

                enabledSwitch.Subscribe(client);

                Assert.IsTrue(enabledSwitch.Enabled);

                ICodeSwitch <Feature_NewUpdateScreen> nextSwitch = new CodeFeatureStateCodeSwitch <Feature_NewUpdateScreen>(client);

                nextSwitch.Subscribe(client);

                bool enabled = nextSwitch.Enabled;

                Console.WriteLine("Waiting");

                await Task.Delay(5000);
            }
        }
コード例 #2
0
        public async void Should_run_and_wait_for_a_while()
        {
            using (var client = new FooidityClient("sturjs8z35kkpngz8dnphkd9ia7piuzcgcioi1n37uzoce4se15o"))
            {
                await client.Connect("http://localhost:1196/");

                Console.WriteLine("Connected");

                ICodeSwitch<Feature_Sample> enabledSwitch = new CodeFeatureStateCodeSwitch<Feature_Sample>(client);

                enabledSwitch.Subscribe(client);

                Assert.IsTrue(enabledSwitch.Enabled);

                ICodeSwitch<Feature_NewUpdateScreen> nextSwitch = new CodeFeatureStateCodeSwitch<Feature_NewUpdateScreen>(client);

                nextSwitch.Subscribe(client);

                bool enabled = nextSwitch.Enabled;

                Console.WriteLine("Waiting");

                await Task.Delay(5000);
            }
        }
コード例 #3
0
        public async void Should_succeed_to_report_switch_states()
        {
            using (var client = new FooidityClient("sturjs8z35kkpngz8dnphkd9ia7piuzcgcioi1n37uzoce4se15o"))
            {
                await client.Connect("http://localhost:1196/");

                Console.WriteLine("Connected");

                ICodeSwitch <Feature_Sample> enabledSwitch = new CodeFeatureStateCodeSwitch <Feature_Sample>(client);

                enabledSwitch.Subscribe(client);

                Assert.IsTrue(enabledSwitch.Enabled);

                Console.WriteLine("Waiting");

                await Task.Delay(5000);
            }
        }
コード例 #4
0
        public async void Should_succeed_to_report_switch_states()
        {
            using (var client = new FooidityClient("sturjs8z35kkpngz8dnphkd9ia7piuzcgcioi1n37uzoce4se15o"))
            {
                await client.Connect("http://localhost:1196/");

                Console.WriteLine("Connected");

                ICodeSwitch<Feature_Sample> enabledSwitch = new CodeFeatureStateCodeSwitch<Feature_Sample>(client);

                enabledSwitch.Subscribe(client);

                Assert.IsTrue(enabledSwitch.Enabled);

                Console.WriteLine("Waiting");

                await Task.Delay(5000);
            }
        }
コード例 #5
0
        public async void Should_succeed()
        {
            var client = new FooidityClient("sturjs8z35kkpngz8dnphkd9ia7piuzcgcioi1n37uzoce4se15o");

            await client.Connect("http://localhost:1196/");
        }
コード例 #6
0
        public async void Should_succeed()
        {
            var client = new FooidityClient("sturjs8z35kkpngz8dnphkd9ia7piuzcgcioi1n37uzoce4se15o");

            await client.Connect("http://localhost:1196/");
        }