public void Update_Motherboard_Service_Test() { Motherboard computer = new Motherboard("Model DC", "Intel", TypeMotherboardEnum.Notebook); IMotherboardService service = new MotherboardService(_mockRepository.Object, _mockPostRepository.Object); service.Update(computer); _mockRepository.Verify(repo => repo.Update(computer)); }
private void InitializeInformations() { PleaseWaitWindow pleaseWaitWindow = new PleaseWaitWindow(); pleaseWaitWindow.Show(); SystemService systemService = new SystemService(); systemService.InsertInformationsToListView(ref systemView); ProcessorService processorService = new ProcessorService(); processorService.InsertInformationsToListView(ref processorView); MotherboardService motherboardService = new MotherboardService(); motherboardService.InsertInformationsToListView(ref motherboardView); MemoryService memoryService = new MemoryService(); memoryService.InsertInformationsToListView(ref memoryView); VideoAdapterService videoAdapterService = new VideoAdapterService(); videoAdapterService.InsertInformationsToListView(ref videoAdapterView); AudioService audioService = new AudioService(); audioService.InsertInformationsToListView(ref audioView); DrivesService drivesService = new DrivesService(); drivesService.InsertInformationsToListView(ref drivesView); TemperatureService temperatureService = new TemperatureService(); temperatureService.InsertInformationsToListView(ref temperatureView); pleaseWaitWindow.Close(); }
public void Read_Motherboard_Service_Test() { IMotherboardService service = new MotherboardService(_mockRepository.Object, _mockPostRepository.Object); service.Read(1); _mockRepository.Verify(repo => repo.Read(1)); }