// next two constructors are for testing purposes. public TourPlannerAppFactoryImp(ITourEntryDAO tourEntryDAO) { RouteImagesFolder = ConfigurationManager.AppSettings["RouteImagesFolder"]; ReportPdfsFolder = ConfigurationManager.AppSettings["ReportPdfsFolder"]; this.tourEntryDAO = tourEntryDAO; Log.Info("TourPlannerAppFactoryImp constructor with parameter is called."); }
public LogEntryFileDAO() { this.fileAccess = DALFactory.GetFileAccess(); this.tourEntryDAO = DALFactory.CreateTourEntryDAO(); }
public static ITourPlannerAppFactory GetInstance(ITourEntryDAO tourEntryDAO) { instance = new TourPlannerAppFactoryImp(tourEntryDAO); return(instance); }
public MainViewModel(ILogEntryDAO logEntryDAO, ITourEntryDAO tourEntryDAO) { this.tourPlannerAppFactory = TourPlannerAppFactory.GetInstance(logEntryDAO); FillLogs(); log4net.Config.XmlConfigurator.Configure(); }
public MainViewModel(ITourEntryDAO tourEntryDAO) { this.tourPlannerAppFactory = TourPlannerAppFactory.GetInstance(tourEntryDAO); InitListView(); log4net.Config.XmlConfigurator.Configure(); }
public LogEntryPostgresDAO(IDatabase database, ITourEntryDAO tourEntryDAO) { this.database = database; this.tourEntryDAO = tourEntryDAO; }
public LogEntryPostgresDAO() { this.database = DALFactory.GetDatabase(); this.tourEntryDAO = DALFactory.CreateTourEntryDAO(); }