/// <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; }
/// <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; }
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); } }
public ProgramService(IProgramFactory programFactory) { _programFactory = programFactory; }