public DocumentsController()
 {
     documentManagementService  = serviceHandler.GetDocumentManagementService();
     headerManagementService    = serviceHandler.GetHeaderManagementService();
     paragraphManagementService = serviceHandler.GetParagraphManagementService();
     footerManagementService    = serviceHandler.GetFooterManagementService();
     codeGenerator           = serviceHandler.GetCodeGeneratorService();
     documentLogger          = serviceHandler.GetDocumentModificationLogService();
     formatManagementService = serviceHandler.GetFormatManagementService();
 }
示例#2
0
 public ParagraphManagementTest()
 {
     mockParagraphRepository  = new Mock <IParagraphRepository>();
     mockDocumentRepository   = new Mock <IDocumentRepository>();
     mockStyleClassRepository = new Mock <IStyleClassRepository>();
     mockContentRepository    = new Mock <IContentRepository>();
     paragraphLogic           = new ParagraphManagementService()
     {
         ParagraphRepository  = mockParagraphRepository.Object,
         DocumentRepository   = mockDocumentRepository.Object,
         StyleClassRepository = mockStyleClassRepository.Object,
         ContentRepository    = mockContentRepository.Object
     };
 }
示例#3
0
 public ParagraphController()
 {
     paragraphManagementService = serviceHandler.GetParagraphManagementService();
     textManagementService      = serviceHandler.GetTextManagementService();
     documentLogger             = serviceHandler.GetDocumentModificationLogService();
 }