public TestTableRowChangeEvent(
     TestTableRow row,
     global::System.Data.DataRowAction action
     )
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Ejemplo n.º 2
0
            public TestTableRow AddTestTableRow(System.Guid id, System.Guid idParent, string Name, System.DateTime Date)
            {
                TestTableRow rowTestTableRow = ((TestTableRow)(this.NewRow()));

                object[] columnValuesArray = new object[] {
                    id,
                    idParent,
                    Name,
                    Date
                };
                rowTestTableRow.ItemArray = columnValuesArray;
                this.Rows.Add(rowTestTableRow);
                return(rowTestTableRow);
            }
Ejemplo n.º 3
0
        public void Fill(string name, int id, string firstName, bool gender)
        {
            var row = new TestTableRow(name, id, firstName, gender);

            var document = new TableTestDocument(name, new List <object>()
            {
                row
            });

            var xDocument = XDocument.Parse(Resources.TableTestDocument);

            using (var wordPackage = WordprocessingDocument.FromFlatOpcDocument(xDocument))
            {
                var body = wordPackage.MainDocumentPart.Document.Body;

                Assert.That(() =>
                {
                    document.Fill(wordPackage.MainDocumentPart);
                }, Throws.Nothing | Throws.InstanceOf <ArgumentNullException>());
            }
        }
 public void AddRow(TestTableRow row)
 {
     _rows.Add(row);
 }
 public void RemoveTestTableRow(TestTableRow row) {
     this.Rows.Remove(row);
 }
 public void AddTestTableRow(TestTableRow row) {
     this.Rows.Add(row);
 }
 public TestTableRowChangeEvent(TestTableRow row, global::System.Data.DataRowAction action) {
     this.eventRow = row;
     this.eventAction = action;
 }
Ejemplo n.º 8
0
 public void RemoveTestTableRow(TestTableRow row)
 {
     this.Rows.Remove(row);
 }
Ejemplo n.º 9
0
 public void AddTestTableRow(TestTableRow row)
 {
     this.Rows.Add(row);
 }