/// <summary> /// <see cref="IBankDataInserter.SaveOperation"/> /// </summary> public void SaveOperation(BankOperation operation) { var accountId = _indexesFinder.GetAccountId(operation.AccountNumber.InnerNumber); _dataSaver.SaveOperationToHistory(accountId, operation.OperationRecord); }
public void getAccountId_existingAccount_returnsId() { var id = _indexesFinder.GetAccountId(ExistingInnerAccountNumber); Assert.AreEqual(ExistingAccountId, id); }