예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SaveProgramRequestHandler"/> class.
 /// </summary>
 /// <param name="agencyRepository">The agency repository.</param>
 /// <param name="mappingHelper">The mapping helper.</param>
 /// <param name="programFactory">The program factory.</param>
 public SaveProgramRequestHandler(
     IAgencyRepository agencyRepository, IDtoToDomainMappingHelper mappingHelper, IProgramFactory programFactory)
 {
     _agencyRepository = agencyRepository;
     _mappingHelper    = mappingHelper;
     _programFactory   = programFactory;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DeleteProgramRequestHandler"/> class.
 /// </summary>
 /// <param name="programRepository">The program repository.</param>
 /// <param name="programFactory">The program factory.</param>
 /// <param name="agencyRepository">The agency repository.</param>
 public DeleteProgramRequestHandler(
     IProgramRepository programRepository,
     IProgramFactory programFactory,
     IAgencyRepository agencyRepository)
 {
     _programRepository = programRepository;
     _programFactory    = programFactory;
     _agencyRepository  = agencyRepository;
 }
예제 #3
0
        public ProgramListViewModel(IApplicationState state, IProgramService programService, IProgramFactory programFactory, INotificationService notificationService)
        {
            this.programService      = programService;
            this.notificationService = notificationService;
            this.programFactory      = programFactory;

            foreach (var p in state.Programs)
            {
                addNewItem(p);
            }
        }
예제 #4
0
 public ProgramService(IProgramFactory programFactory)
 {
     _programFactory = programFactory;
 }