Exemple #1
0
        public void TestInsert()
        {
            var item = new Item {
                Text = "Some Text", Description = "Some description"
            };
            var number_inserted = dataStore.AddItemAsync(item).Result;

            var all_items = dataStore.GetItemsAsync().Result.ToList <Item>();

            Assert.AreEqual(item.Id, all_items[all_items.Count - 1].Id);
        }