/// <summary>
 /// Initializes a new instance of the <see cref="Word2007TestReportAdapter"/> class.
 /// </summary>
 /// <param name="document">Word document to work with.</param>
 /// <param name="configuration">The configuration.</param>
 /// <param name="testSuite">The test suite</param>
 /// <param name="allTestCases">All test cases related to test suite</param>
 public Word2007TestReportAdapter(Document document, IConfiguration configuration, ITfsTestSuite testSuite, IList <ITfsTestCaseDetail> allTestCases)
 {
     _document                  = document;
     _configuration             = configuration;
     _preparationDocumentHelper = new PreparationDocumentHelper(_document, _wordApplication);
     _testSuite                 = testSuite;
     _allTestCases              = allTestCases;
 }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Word2007SyncAdapter"/> class.
        /// </summary>
        /// <param name="configuration">Configuration to work with</param>
        /// <param name="document">Word document to work with.</param>
        public Word2007SyncAdapter(Document document, IConfiguration configuration)
        {
            if (document == null)
            {
                throw new ArgumentNullException("document");
            }

            Configuration       = configuration;
            _initializationType = TypeOfInitialization.ActiveDocument;
            Document            = document;

            // These options need to be turned set. VML adds spaces (after removing the vml tags) that confuse the value comparision. Different image qualities too.
            document.WebOptions.RelyOnVML = false;
            document.ShowRevisions        = false;
            document.WebOptions.AllowPNG  = true;

            _preparationDocumentHelper = new PreparationDocumentHelper(Document, _wordApplication);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="Word2007TestReportAdapter"/> class.
 /// </summary>
 /// <param name="document">Word document to work with.</param>
 /// <param name="configuration">The configuration.</param>
 public Word2007TestReportAdapter(Document document, IConfiguration configuration)
 {
     _document                  = document;
     _configuration             = configuration;
     _preparationDocumentHelper = new PreparationDocumentHelper(_document, _wordApplication);
 }