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

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

            ComputerModel insertedItem = store.GetItem <ComputerModel>(1);

            Assert.AreEqual(insertedItem.OemName, "Apple");
            Assert.AreEqual(insertedItem.Model, "Macbook");
        }
        public void TestUpdate()
        {
            IObjectStore store = new InMemoryObjectStore();

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

            store.UpdateItem <ComputerModel>(1, new ComputerModel
            {
                OemName = "Samsung",
                Model   = "Ativ"
            });

            ComputerModel insertedItem = store.GetItem <ComputerModel>(1);

            Assert.AreEqual(insertedItem.OemName, "Samsung");
            Assert.AreEqual(insertedItem.Model, "Ativ");
        }