Beispiel #1
0
 public HomeController(
     ICPUService cpuService,
     IMotherboardService motherboardService,
     IGPUService gpuService)
 {
     this.cpuService         = cpuService;
     this.motherboardService = motherboardService;
     this.gpuService         = gpuService;
 }
 public VideoCardController(IVideoCardService videoCardService, IWebHostEnvironment hostEnvironment, IManufacturerService manufacturerService, IVideoCardInterfaceService videoCardInterfaceService, IGraphicMemoryTypeService graphicMemoryTypeService, IGPUService gpuService, IComputerAssemblyService assemblyService, IUserService userService)
 {
     _videoCardService          = videoCardService;
     _webHostEnvironment        = hostEnvironment;
     _videoCardInterfaceService = videoCardInterfaceService;
     _gpuService = gpuService;
     _graphicMemoryTypeService = graphicMemoryTypeService;
     _manufacturerService      = manufacturerService;
     _assemblyService          = assemblyService;
     _userService = userService;
 }
Beispiel #3
0
 public void Dispose()
 {
     _service               = null;
     _mockGPURepo           = null;
     _mockComponentRepo     = null;
     _win32VideoController1 = null;
     _win32VideoController2 = null;
     _win32VideoController3 = null;
     _win32VideoControllers = null;
     _gpu1 = null;
     _gpu2 = null;
     _gpu3 = null;
     _gpus = null;
     GC.SuppressFinalize(this);
 }
Beispiel #4
0
 public GPUsController(IGPUService service, IMapper mapper)
 {
     Service = service;
     Mapper  = mapper;
 }
Beispiel #5
0
 private void SetupService()
 {
     _service = new GPUService(_mockGPURepo.Object, _mockComponentRepo.Object);
 }
Beispiel #6
0
 public GPUController(IGPUService gpuService)
 {
     _gpuService = gpuService;
 }