public void ListServicesTest_TestUpdate() { var Lists = GetTestData(); var listServices = new ListServices(GetListRepository(Lists), GetListItemServices()); Lists.ForEach(li => { var item = new ListModel { Id = li.Id, UserId = li.UserId + 1 }; var updated = listServices.Update(item); Assert.AreEqual(JsonConvert.SerializeObject(updated), JsonConvert.SerializeObject(item)); }); }