partial void ToDtoPostprocessing(ref BudgetModelDto dto, BudgetModel model)
 {
     var mapper3 = new Mapper_ExpenseDto_Expense(this.bucketRepo);
     List<ExpenseDto> expenses8 = model.Expenses.Select(mapper3.ToDto).ToList();
     dto.Expenses = expenses8;
     var mapper4 = new Mapper_IncomeDto_Income(this.bucketRepo);
     List<IncomeDto> incomes9 = model.Incomes.Select(mapper4.ToDto).ToList();
     dto.Incomes = incomes9;
 }
        partial void ToDtoPostprocessing(ref BudgetModelDto dto, BudgetModel model)
        {
            var mapper3 = new Mapper_ExpenseDto_Expense(this.bucketRepo);
            List <ExpenseDto> expenses8 = model.Expenses.Select(mapper3.ToDto).ToList();

            dto.Expenses = expenses8;
            var mapper4 = new Mapper_IncomeDto_Income(this.bucketRepo);
            List <IncomeDto> incomes9 = model.Incomes.Select(mapper4.ToDto).ToList();

            dto.Incomes = incomes9;
        }
 partial void ToModelPostprocessing(BudgetModelDto dto, ref BudgetModel model)
 {
     var modelType = model.GetType();
     var mapper1 = new Mapper_ExpenseDto_Expense(this.bucketRepo);
     List<Expense> expenses2 = dto.Expenses.Select(mapper1.ToModel).ToList();
     model.LastModified = dto.LastModified ?? DateTime.Now;
     modelType.GetProperty("Expenses").SetValue(model, expenses2);
     var mapper2 = new Mapper_IncomeDto_Income(this.bucketRepo);
     List<Income> incomes3 = dto.Incomes.Select(mapper2.ToModel).ToList();
     modelType.GetProperty("Incomes").SetValue(model, incomes3);
 }
        partial void ToModelPostprocessing(BudgetModelDto dto, ref BudgetModel model)
        {
            var            modelType = model.GetType();
            var            mapper1   = new Mapper_ExpenseDto_Expense(this.bucketRepo);
            List <Expense> expenses2 = dto.Expenses.Select(mapper1.ToModel).ToList();

            model.LastModified = dto.LastModified ?? DateTime.Now;
            modelType.GetProperty("Expenses").SetValue(model, expenses2);
            var           mapper2  = new Mapper_IncomeDto_Income(this.bucketRepo);
            List <Income> incomes3 = dto.Incomes.Select(mapper2.ToModel).ToList();

            modelType.GetProperty("Incomes").SetValue(model, incomes3);
        }
 public void TestInitialise()
 {
     var subject = new Mapper_IncomeDto_Income(new BucketBucketRepoAlwaysFind());
     Result = subject.ToModel(TestData);
 }