Esempio n. 1
0
        public async Task TestCreateAndDeleteApplicationAsync()
        {
            var c   = new Lassie.Client();
            var app = await c.CreateApplicationAsync(new Lassie.Application());

            Assert.NotNull((app));
            await c.DeleteApplicationAsync(app.ApplicationEUI);
        }
Esempio n. 2
0
        public async Task TestUpdateApplicationAsync()
        {
            var c   = new Lassie.Client();
            var app = await c.CreateApplicationAsync(new Lassie.Application());

            app.Tags["name"] = "foo";
            var updated = await c.UpdateApplicationAsync(app);

            Assert.Equal(app.ApplicationEUI, updated.ApplicationEUI);
            Assert.Equal("foo", updated.Tags["name"]);
            await c.DeleteApplicationAsync(updated.ApplicationEUI);
        }