public void TestNoElementDelete()
        {
            IObjectStore store = new InMemoryObjectStore();

            try
            {
                store.DeleteItem <ComputerModel>(1);
            }
            catch
            {
                Assert.IsTrue(true);
            }
        }
        public void TestDelete()
        {
            IObjectStore store = new InMemoryObjectStore();

            store.AddItem <ComputerModel>(new ComputerModel
            {
                Id      = 1,
                OemName = "Apple",
                Model   = "Macbook"
            });

            store.DeleteItem <ComputerModel>(1);

            List <ComputerModel> computers = store.ListItems <ComputerModel>();

            Assert.AreEqual(computers.Count, 0);
        }