예제 #1
0
        public void UpdateTest()
        {
            var storage = new InMemoryStorage();
            var item    = new ReminderItem(Guid.NewGuid(), DateTimeOffset.Now, "Test ALO", 0);

            storage.Add(item.Id, item);
            var item1 = new ReminderItem(Guid.NewGuid(), DateTimeOffset.Now, "Test HALLO", 1);

            storage.Update(item.Id, item1);
            var getItem = storage.Get(item1.Id);

            Assert.AreEqual(item1, getItem);
        }
예제 #2
0
 public void Update(Product entity)
 {
     _inMemoryStorage.Update(entity);
 }
예제 #3
0
 public void Update(Vendor entity)
 {
     _inMemoryStorage.Update(entity);
 }