コード例 #1
0
 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));
 }
コード例 #2
0
ファイル: MainWindow.cs プロジェクト: mAngel12/mdHWChecker
        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();
        }
コード例 #3
0
 public void Read_Motherboard_Service_Test()
 {
     IMotherboardService service = new MotherboardService(_mockRepository.Object, _mockPostRepository.Object);
     service.Read(1);
     _mockRepository.Verify(repo => repo.Read(1));
 }