public void Delete_NoId_ThrowsException()
        {
            var subject = new Api.Controllers.TransactionsController(_transactionService);

            // act
            subject.Delete(0);

            // assert
            Assert.IsTrue(false, "exception should be thrown");
        }
        public void Delete_NoId_ThrowsException()
        {
            var subject = new Api.Controllers.TransactionsController(_transactionService);

            // act
            subject.Delete(0);

            // assert
            Assert.IsTrue(false, "exception should be thrown");
        }
        public void Delete_Id_DeletesRecord()
        {
            var subject = new Api.Controllers.TransactionsController(_transactionService);

            // act
            subject.Delete(101);

            // assert
            _transactionRepositoryMock.Verify(x => x.Delete(101), Times.Once);
        }
        public void Delete_Id_DeletesRecord()
        {
            var subject = new Api.Controllers.TransactionsController(_transactionService);

            // act
            subject.Delete(101);

            // assert
            _transactionRepositoryMock.Verify(x => x.Delete(101), Times.Once);
        }