示例#1
0
        public void Effort_NICs_GetByPrimaryKey_Test()
        {
            string  _id  = _nicId;
            NICData _row = _sut.GetByPrimaryKey(_id);

            Assert.IsNotNull(_row);
            Assert.AreEqual(_row.NIC, _id);
            System.Diagnostics.Debug.WriteLine(_row.ToString());
        }
示例#2
0
        public void Effort_NICs_Update_Test()
        {
            string  _id  = _nicId;
            NICData _row = _sut.GetByPrimaryKey(_id);

            _row.NICDescription = "123456789 123456789";
            int _rowCnt = _sut.Update(_row.NIC, _row.NICDescription,
                                      _row.NICAbuseEmailAddress, _row.NICRestService, _row.NICWebSite);

            Assert.AreEqual(_rowCnt, 1);
            NICData _new = _sut.GetByPrimaryKey(_id);

            System.Diagnostics.Debug.WriteLine(_new.ToString());
            Assert.AreEqual(_id, _new.NIC);
            Assert.AreEqual(_row.NICDescription, _new.NICDescription);
        }