public void AddOrUpdate_GetAll_Delete_TestClass() { Test test = new Test() { Name = "oblect_1" }; testService.AddOrUpdateTest(test); Assert.AreEqual(testService.GetAll().Where(t => t.Name == test.Name).FirstOrDefault().Name, test.Name); foreach (var item in testService.GetAll().ToList()) { testService.Delete(item.Id); } }