Exemple #1
0
        public void Cleanup()
        {
            var widget = new QueryWidget();

            // drop the widgets table.
            using (var commander = CommanderHelper.CreateCommander())
            {
                var result = commander.Execute(widget);
            }
        }
Exemple #2
0
        public void Initialize()
        {
            var widget = new QueryWidget();

            // create a new widgets table.
            using (var commander = CommanderHelper.CreateCommander())
            {
                var result = commander.Execute(widget);
            }
        }
Exemple #3
0
        // [TestMethod]
        public void SynchronousCalls()
        {
            var started = DateTime.UtcNow;

            using (var commander = CommanderHelper.CreateCommander())
            {
                var result = commander.Query <dynamic>(new { Id = 501 });
            }

            var stopped = DateTime.UtcNow;
            var elapsed = stopped.Subtract(started);

            Console.WriteLine($"Completed in {elapsed.TotalMilliseconds} milliseconds.");
        }