public void UnitOfWorkSaveViaContext() { var unitOfWork = new EntityFrameworkUnitOfWork(_mockContext.Object); unitOfWork.Save(); _mockContext.Verify(m => m.SaveChanges(), Times.Once); }
public void UnitOfWorkSaveViaContext() { var unitOfWork = new EntityFrameworkUnitOfWork(_mockContext.Object); unitOfWork.Save(); _mockContext.Verify(m => m.SaveChanges(), Times.Once); }