public void GetGpuModels_WithListOfGpus_ShouldReturnAllModels()
        {
            SetUp();

            SeedData();
            var           gpuModels      = _gpuService.GetGpuModels().ToList();
            List <string> expectedResult = new List <string>()
            {
                "model1", "model2"
            };

            Assert.Equal(expectedResult, gpuModels);
        }
示例#2
0
 public List <string> GetGpuModels()
 {
     return(_service.GetGpuModels().ToList());
 }