public UnitOfWork(GrowingPlantsContext context)
 {
     UserRepository                = new UserRepository(context);
     TreeRepository                = new TreeRepository(context);
     MeasurementUnitRepository     = new MeasurementUnitRepository(context);
     LightRepository               = new LightRepository(context);
     HumidityRepository            = new HumidityRepository(context);
     TemperatureRepository         = new TemperatureRepository(context);
     FavoriteTreeRepository        = new FavoriteTreeRepository(context);
     CountryRepository             = new CountryRepository(context);
     PlantingProcessRepository     = new PlantingProcessRepository(context);
     PlantingEnvironmentRepository = new PlantingEnvironmentRepository(context);
     ProcessStepRepository         = new ProcessStepRepository(context);
     PlantingActionRepository      = new PlantingActionRepository(context);
     RecurrenceRepository          = new RecurrenceRepository(context);
     NotificationRepository        = new NotificationRepository(context);
     PlantingSpotRepository        = new PlantingSpotRepository(context);
     PlantTypeRepository           = new PlantTypeRepository(context);
     GalleryRepository             = new GalleryRepository(context);
     PictureRepository             = new PictureRepository(context);
 }
Example #2
0
        public MainWindow()
        {
            InitializeComponent();

            DisableEditing();

            var folder = new Core.StorageLocations.AppDataStorageLocation().ProcessesPath;

            _processRepo = new ProcessStepRepository(folder);

            RefreshProcessListBox();

            Forms = new Dictionary <string, IApplierFormBuilder>
            {
                { PercentageBorderApplier.IdConst, new PercentageBorderFormBuilder() },
                { WatermarkApplier.IdConst, new WatermarkFormBuilder() }
            };

            OperationsListBox.ItemsSource = Forms;

            DataContext = this;
        }
 public GenerateSchema_Fixture()
 {
     repoProcess     = new ProcessRepository();
     repoProject     = new ProjectRepository();
     repoProcessStep = new ProcessStepRepository();
 }