/// <summary>
        /// Creates a base Word file for the tests
        /// </summary>
        /// <param name="createFilePath">Create Word file path</param>
        private void Initialize(string createFilePath)
        {
            ConnectionGeneratedDocument connectionGeneratedDocument = new ConnectionGeneratedDocument();

            connectionGeneratedDocument.CreatePackage(createFilePath);

            this.Log.Pass("Create Word file. File path=[{0}]", createFilePath);

            this.connectionTestEntities = new ConnectionTestEntities(createFilePath);
        }
Exemple #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        public PivotTest(ITestOutputHelper output)
            : base(output)
        {
            string createFilePath = GetTestFilePath(generatedOldbConnectionDocumentFile);
            ConnectionGeneratedDocument connectionGeneratedDocument = new ConnectionGeneratedDocument();

            connectionGeneratedDocument.CreatePackage(createFilePath);

            Log.Pass("Create Word file. File path=[{0}]", createFilePath);

            connectionTestEntities = new ConnectionTestEntities(createFilePath);
        }
Exemple #3
0
        public void PivotConnection03AddElement()
        {
            using (var stream = new MemoryStream())
            {
                ConnectionGeneratedDocument.CreatePackage(stream);

                var connectionTestEntities = new ConnectionTestEntities(stream);

                connectionTestEntities.AddElement(stream, Log);
                connectionTestEntities.VerifyAddedElement(stream, Log);
            }
        }
Exemple #4
0
        /// <summary>
        /// Creates a base Word file for the tests
        /// </summary>
        /// <param name="createFilePath">Create Word file path</param>
        private void Initialize(string createFilePath)
        {
            try
            {
                ConnectionGeneratedDocument connectionGeneratedDocument = new ConnectionGeneratedDocument();
                connectionGeneratedDocument.CreatePackage(createFilePath);

                this.Log.Pass("Create Word file. File path=[{0}]", createFilePath);

                this.connectionTestEntities = new ConnectionTestEntities(createFilePath);
            }
            catch (Exception e)
            {
                this.Log.Fail(string.Format(e.Message + ". :File path={0}", createFilePath));
            }
        }