Exemplo n.º 1
0
        public void Effort_NoteTypes_GetByPrimaryKey_Test()
        {
            int          _id  = _noteTypeId;
            NoteTypeData _row = _sut.GetByPrimaryKey(_id);

            Assert.IsNotNull(_row);
            Assert.AreEqual(_row.NoteTypeId, _id);
            System.Diagnostics.Debug.WriteLine(_row.ToString());
        }
Exemplo n.º 2
0
        public void Effort_NoteTypes_DeleteFail_Test()
        {
            int _id        = 1;
            int _actualCnt = _sut.Delete(_id);

            Assert.AreEqual(0, _actualCnt);
            NoteTypeData _row = _sut.GetByPrimaryKey(_id);

            Assert.IsNotNull(_row);
        }
Exemplo n.º 3
0
        public void Effort_NoteTypes_Update_Test()
        {
            int          _id  = _noteTypeId;
            NoteTypeData _row = _sut.GetByPrimaryKey(_id);

            _row.NoteTypeDesc = "123456789 123456789";
            int _rowCnt = _sut.Update(_row.NoteTypeId, _row.NoteTypeDesc, _row.NoteTypeShortDesc);

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

            System.Diagnostics.Debug.WriteLine(_new.ToString());
            Assert.AreEqual(_row.NoteTypeId, _new.NoteTypeId);
            Assert.AreEqual(_row.NoteTypeDesc, _new.NoteTypeDesc);
        }