private void AddExpense(int itemId, string expDesc, string expAmount, int expBy, string expDate) { Expense objExp = new Expense(); bool addStatus = objExp.AddNewExpense(itemId, expDesc, expAmount, expBy, expDate); if (addStatus) { DisplayDataInGrid(); ClearFunction(); STATUS_BAR_STATUS_MESSAGE.Text = MessageManager.GetMessage("9"); } else { STATUS_BAR_STATUS_MESSAGE.Text = MessageManager.GetMessage("10"); } }
public void CreateNewExpenseReport() { TestData Data = DataManager.GetTestData("ExpenseData", DataRandomToken, TestRunNum); Login login = new Login(this.DriverManager); login.OpenApp().LogIn(Data.Get("Login")); Dashboard dashboard = new Dashboard(this.DriverManager); dashboard.OpenSideMenu("Employee Central").OpenMenu("Expenses"); Expense expense = new Expense(this.DriverManager); expense.AddNewExpense(Data); }