Ejemplo n.º 1
0
        public void AddItemTest()
        {
            //Arrange
            string item  = "phone";
            int    index = 3;
            //Act
            var result = _client.AddItem(item, index);

            //Assert
            Assert.AreEqual(result.Key, HttpStatusCode.OK);
            Console.WriteLine($"{result.Value}");
            Assert.IsNotEmpty(result.Value.ToString());
        }
        private async void AddItem_Click(object sender, RoutedEventArgs e)
        {
            await ApiMethods.AddItem(currentTripId, txtItemName.Text, int.Parse(txtItemCount.Text), selectedCategory.Id);

            Frame.GoBack();
        }