var user = _model.Users.SingleOrDefault(p => p.Guid == id);
user.StringToUpdate = stringToUpdate;
// Handles the first call
Mock.Arrange(() => _mockModel.SaveChanges()).Throws<OptimisticVerificationException>(
// Handles the second call.
Mock.Arrange(() => _mockModel.SaveChanges()).InSequence();
Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.
It’s great that you asked the question. However, you are right. I haven't noticed that SaveChanges is a void method. In that regard InSequence is the answer.