public void Make() { MoneyTransfer moneyTransfer = new MoneyTransfer(); List <Debtor> result = moneyTransfer.Make(mTTest.GetSample1List()); List <Debtor> control = debtorTest.GetResult1List(); CollectionAssert.AreEqual(control, result); }
public IActionResult Start([FromBody] List <MoneyTransaction> transaction) { if (transaction == null) { return(NoContent()); } try { List <Debtor> debtors = moneyTransfer.Make(transaction); return(Ok(debtors)); } catch (Exception) { return(BadRequest()); } }