Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public bool AddJobExpense(JobDAO j, ExpenseDAO ex)
 {
     return(ef.AddJobExpense(JobMapper.MapToJob(j), ExpenseMapper.MapToExpense(ex)));
 }