public void DeleteRange_Models() { IEnumerable <TestModel> models = new[] { ObjectsFactory.CreateTestModel(1), ObjectsFactory.CreateTestModel(2) }; context.AddRange(models); context.SaveChanges(); unitOfWork.DeleteRange(models); unitOfWork.Commit(); Assert.Empty(context.Set <TestModel>()); }