Пример #1
0
        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);
        }
Пример #2
0
 public Task <bool> AddColorAsync(Color color)
 {
     return(_laptopService.AddColorAsync(color));
 }