public async void GetListOfLaptopAsyncTest() { ILaptopService laptopService = GetServiceObject(); DC.LaptopResponse list = await laptopService.GetListOfLaptopAsync(); Assert.NotEmpty(list.Laptops); }
public async void AddHddAsyncTest() { ILaptopService laptopService = GetServiceObject(); Hdd hdd = new Hdd(); hdd.Type = "5 TB"; hdd.Price = "500"; bool flag = await laptopService.AddHddAsync(hdd); Assert.True(flag); }
public async void AddRamAsyncTest_Fail() { ILaptopService laptopService = GetServiceObject(); Ram ram = new Ram(); ram.Type = "8GB"; ram.Price = "500"; bool flag = await laptopService.AddRamAsync(ram); Assert.False(flag); }
public async void AddColorAsyncTest() { ILaptopService laptopService = GetServiceObject(); Color color = new Color(); color.Type = "4 TB"; color.Price = "500"; bool flag = await laptopService.AddColorAsync(color); Assert.True(flag); }
public async void AddLaptopAsyncTest() { ILaptopService laptopService = GetServiceObject(); Laptop laptop = new Laptop(); laptop.Name = "Lenova"; laptop.Price = "500"; DC.LaptopResponse laptopResponse = await laptopService.AddLaptopAsync(laptop); Laptop laptopActual = laptopResponse.Laptops[laptopResponse.Laptops.Count - 1]; Assert.Equal(laptop.Name, laptopActual.Name); Assert.Equal(laptop.Price, laptopActual.Price); }
public LaptopProvider(ILaptopService laptopService) { _laptopService = laptopService; }
public LaptopController(ILaptopService laptopService) { _laptopService = laptopService; }
public LaptopsController(ILaptopService Service) { _laptopService = Service; }
public LaptopModelsController(ILaptopService laptopService) { this.laptopService = laptopService; }
public LaptopUnitTest() { _laptopService = new ECommerceDataFake(); _controller = new LaptopController(_laptopService); }
public RentController(IRentService rentService, ILaptopService laptopService) { _rentService = rentService; _laptopService = laptopService; }
public LaptopController(ILaptopService LaptopService) { this._laptopService = LaptopService; }
public IndexModel(ILaptopService laptopService) { _laptopservice = laptopService; }