Bläddra i källkod

Тестирование

galoc 2 veckor sedan
förälder
incheckning
879fb12e91
1 ändrade filer med 5 tillägg och 6 borttagningar
  1. 5 6
      TestProject1/UnitTest1.cs

+ 5 - 6
TestProject1/UnitTest1.cs

@@ -174,17 +174,17 @@ namespace TestProject1
         }
         //UT 8
 
-        public async Task<ModeledResponse<Genders>> InsertDishes()
+        public async Task<ModeledResponse<Genders>> InsertGenders()
         {
-            var dishes = new Genders
+            var genders = new Genders
             {
                 Id = 100,
                 Title = "Êàðáîíàðà",
             };
-            return await supabase.From<Genders>().Upsert(dishes);
+            return await supabase.From<Genders>().Upsert(genders);
         }
         [TestMethod]
-        public async Task DishesInsert()
+        public async Task GendersInsert()
         {
             var url = "https://unmeiceifhurzmiokboh.supabase.co";
             var key = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InVubWVpY2VpZmh1cnptaW9rYm9oIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MzA5MDU0MDUsImV4cCI6MjA0NjQ4MTQwNX0._7UneKbsr9O1DVE0OrlrRD5ZZlYrLWDOC1T-IJmJqvA";
@@ -194,8 +194,7 @@ namespace TestProject1
             };
             var supabase = new Supabase.Client(url, key, options);
             Initialize();
-            Initialize();
-            var result = await InsertDishes();
+            var result = await InsertGenders();
         }
     }
 }