public ProjectsGalleryTest()
        {
            var options = new DbContextOptionsBuilder <ApplicationDbContext>()
                          .UseInMemoryDatabase(databaseName: "TestDb").Options;

            this.connection = new ApplicationDbContext(options);

            this.galleryProgectRepository = new EfRepository <GalleryProject>(this.connection);
            this.progectRepository        = new EfDeletableEntityRepository <Project>(this.connection);
            this.filesRepository          = new EfRepository <FileOnFileSystem>(this.connection);

            this.environment = new HostingEnvironment();

            this.filesService           = new FilesService(this.filesRepository, this.environment);
            this.projectsService        = new ProjectsService(this.progectRepository, this.filesService);
            this.projectsGalleryService = new ProjectsGalleryService(this.galleryProgectRepository, this.filesRepository, this.filesService, this.projectsService);

            this.InitializeFields();
        }
 public ProjectsController(IProjectsService projectsService, IProjectsGalleryService projectsGalleryService)
 {
     this.projectsService        = projectsService;
     this.projectsGalleryService = projectsGalleryService;
 }