public void AddCreditNoteTransaction_should_Throw_WhenGiven_Invalid_Params()
        {
            _transactionModel.Type = TransType.CRN.ToString();
            _transactionModel.OpeningValue = 1500;
            _transactionModel.Value = 1500;
            _transactionModel.CurrencyValue = -1500;
            _transactionModel.OpeningCurrencyValue = -1500;

            _transConfiguration.SetupMocForPersistence();
            var transService = new TransactionService(_transConfiguration.MockPersistence.Object, _transConfiguration.MockLog.Object, _transConfiguration.MockSecurity.Object);
            transService.AddCreditNoteTransaction(_transactionModel);
        }
        public void AddCreditNoteTransaction_should_Save_AtLeast_Once()
        {
            _transactionModel.Type = TransType.CRN.ToString();
            _transactionModel.OpeningValue = -1500;
            _transactionModel.Value = -1500;
            _transactionModel.CurrencyValue = -1500;
            _transactionModel.OpeningCurrencyValue = -1500;

            _transConfiguration.SetupMocForPersistence();
            var transService = new TransactionService(_transConfiguration.MockPersistence.Object, _transConfiguration.MockLog.Object, _transConfiguration.MockSecurity.Object);
            var result = transService.AddCreditNoteTransaction(_transactionModel);
            _transConfiguration.MockEntity.Verify(x => x.SaveChanges(true), Times.AtLeastOnce());
            Assert.AreEqual(result.Value, _transactionModel.Value);
        }