Beispiel #1
0
        public void Delete(IJenisArsipKey key)
        {
            //      INPUT VALIDATION
            if (key is null)
            {
                throw new ArgumentException("JENIS ARSIP ID empty");
            }

            //      REPO-OP
            _jenisArsipDal.Delete(key);
        }
Beispiel #2
0
        public void Delete_Test()
        {
            using (var trans = TransHelper.NewScope())
            {
                //  arrange
                var expected = JenisArsipSample();
                _sut.Insert(expected);

                //  act
                _sut.Delete(expected);

                //  assert
            }
        }