public SingleObjectModel GetSubsidiaryLedgers([FromUri] string subsidiaryLedgerUID) { using (var usecases = SubsidiaryLedgerUseCases.UseCaseInteractor()) { SubsidiaryLedgerDto subsidiaryLedger = usecases.GetSubsidiaryLedger(subsidiaryLedgerUID); return(new SingleObjectModel(base.Request, subsidiaryLedger)); } }
public void Should_Get_A_Subsidiary_Ledger() { SubsidiaryLedgerDto subledger = _usecases.GetSubsidiaryLedger(TestingConstants.SUBSIDIARY_LEDGER_UID); Assert.Equal(TestingConstants.SUBSIDIARY_LEDGER_UID, subledger.UID); }