コード例 #1
0
 internal CreateNotebookCommand(INotebookUnitOfWork notebookUnitOfWork)
 {
     if (notebookUnitOfWork == null)
     {
         throw new ArgumentNullException("notebookUnitOfWork");
     }
     _notebookUnitOfWork = notebookUnitOfWork;
 }
コード例 #2
0
        public NotebookServiceProvider(INotebookUnitOfWork notebookUnitOfWork, ITimeStamper timeStamper)
        {
            if (notebookUnitOfWork == null)
            {
                throw new ArgumentNullException("notebookUnitOfWork");
            }
            _notebookUnitOfWork = notebookUnitOfWork;

            if (timeStamper == null)
            {
                throw new ArgumentNullException("timeStamper");
            }
            _timeStamper = timeStamper;
        }