Browse Source

промежуточный тест кей

foxhis 1 year ago
parent
commit
0f474ecb38
2 changed files with 5 additions and 2 deletions
  1. 1 1
      TeaTime/page/Authorization.xaml.cs
  2. 4 1
      UnitTestTea/UnitTest1.cs

+ 1 - 1
TeaTime/page/Authorization.xaml.cs

@@ -34,7 +34,7 @@ namespace teaTime
             {
                 NavigationService.Navigate(new wWorkerMain(worker));
             }
-            else if (checkMember())
+            else if (checkMember(aLogin.Text, aPass.Password))
             {
                 NavigationService.Navigate(new wMemberMain(member));
             }

+ 4 - 1
UnitTestTea/UnitTest1.cs

@@ -1,5 +1,6 @@
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 using System;
+using System.Net;
 
 namespace UnitTestTea
 {
@@ -7,8 +8,10 @@ namespace UnitTestTea
     public class UnitTest1
     {
         [TestMethod]
-        public void TestMethod1()
+        public void TestTOREGISTRATION()
         {
+            bool c = new Authorization();
+            Assert.IsTrue(Authorization().(new checkWorker("even52", "1"));
         }
     }
 }