Exemple #1
0
        public void Delete(IPegKey key)
        {
            //      INPUT VALIDATION
            if (key is null)
            {
                throw new ArgumentException("PEGAWAI ID empty");
            }

            //      REPO-OP
            _pegDal.Delete(key);
        }
Exemple #2
0
        public void Delete_Test()
        {
            using (var trans = TransHelper.NewScope())
            {
                //  arrange
                var expected = PegTestData();

                //  act-assert
                _sut.Delete(expected);
            }
        }