public void TestInsertJobExpense() { var data = new EfData(); var expe = data.GetExpenses().FirstOrDefault(); var jb = data.GetJobs().FirstOrDefault(); var result = data.AddJobExpense(jb, expe); Assert.True(result); }
public bool AddJobExpense(JobDAO j, ExpenseDAO ex) { return(ef.AddJobExpense(JobMapper.MapToJob(j), ExpenseMapper.MapToExpense(ex))); }