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 Task <bool> AddColorAsync(Color color) { return(_laptopService.AddColorAsync(color)); }