public async Task TestCreateAccountModel() { ChartOfAccountModule coaMod = new ChartOfAccountModule(); bool result = await coaMod.ChartOfAccount.CreateChartOfAccountModel(); Assert.True(result); }
public async Task TestGetAccountsByIds() { long [] acctIds = { 3, 4, 5 }; ChartOfAccountModule coaMod = new ChartOfAccountModule(); IList <ChartOfAccountView> list = await coaMod.ChartOfAccount.Query().GetViewsByIds(acctIds); if (list.Count > 0) { Assert.True(true); } }
public async Task TestGetExpenseCoa() { ChartOfAccountModule coaMod = new ChartOfAccountModule(); string company = "1000"; string busUnit = "1200"; string objectNumber = "502"; IList <ChartOfAccountView> list = await coaMod.ChartOfAccount.Query().GetViewsByAccount(company, busUnit, objectNumber, ""); if (list.Count == 0) { Assert.True(false); } }