public void SaveDiploma_SaveDocument_CallOnce()
        {
            var docWrapper = new Mock <IDocWrapper>();
            var sut        = new FileWriterBuilder().WithDockWrapper(docWrapper).Build();

            sut.SaveDiploma(It.IsAny <DocumentModel>(), It.IsAny <string>(), It.IsAny <string>());
            docWrapper.Verify(d => d.SaveDocument(It.IsAny <DocumentModel>(), It.IsAny <string>()), Times.Once());
        }
        public void SaveDiploma_CreathPath_CallOnce()
        {
            var stringCreator = new Mock <IStringCreator>();
            var sut           = new FileWriterBuilder().WithStringCreator(stringCreator).Build();

            sut.SaveDiploma(It.IsAny <DocumentModel>(), It.IsAny <string>(), It.IsAny <string>());
            stringCreator.Verify(s => s.CreatePath(It.IsAny <string>(), It.IsAny <string>()), Times.Once);
        }