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);
        }
        public void TestList()
        {
            IObjectStore store = new InMemoryObjectStore();

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

            store.AddItem <ComputerModel>(new ComputerModel
            {
                Id      = 2,
                OemName = "Samsung",
                Model   = "Galaxy"
            });

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

            Assert.IsNotNull(computers.FirstOrDefault(model => model.OemName == "Apple"));
            Assert.IsNotNull(computers.FirstOrDefault(model => model.OemName == "Samsung"));
        }