コード例 #1
0
        public void Data_Delete_Account()
        {
            var repository = new AccountRepository(_dataConnectionString, 1);

            var result = repository.Delete(1);

            var account = repository.Get(1);

            Assert.IsTrue(account == null);
            Assert.IsTrue(result.Deleted == true);
            Assert.IsTrue(result.DeletedBy == 1);
            Assert.IsTrue(result.DeletedDate.Value.Date == DateTime.Now.Date);
        }