Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public Task <bool> AddRamAsync(Ram ram)
 {
     return(_laptopService.AddRamAsync(ram));
 }