Esempio n. 1
0
        public void SetCredentialsTest()
        {
            SemanticHelper    target      = new SemanticHelper(); // TODO: Initialize to an appropriate value
            ClientCredentials credentials = null;                 // TODO: Initialize to an appropriate value

            target.SetCredentials(credentials);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
Esempio n. 2
0
        public bool Login(string sUser, string sPassword)
        {
            m_sUser     = sUser;
            m_sPassword = sPassword;

            ClientCredentials user = new ClientCredentials();

            user.UserName.UserName = m_sUser;
            user.UserName.Password = m_sPassword;

            m_SemanticHelper.SetCredentials(user);
            return(m_SemanticHelper.CheckCredentials());
        }
Esempio n. 3
0
        public void CreateChannelTest()
        {
            SemanticHelper    target = new SemanticHelper(); // TODO: Initialize to an appropriate value
            ClientCredentials cred   = new ClientCredentials();

            cred.UserName.UserName = string.Empty;
            cred.UserName.Password = string.Empty;
            target.SetCredentials(cred);
            IExplDic actual;

            actual = target.CreateChannel();
            Assert.IsNotNull(actual);

            int n1     = actual.GetRowCount("КОС", true, new int[] { 1, 1000 }, false, 1);                               // ExplGetVolumes(1);
            int nQaunt = 0;
            int n2     = actual.Search(out nQaunt, "КОРЧОМ", true, string.Empty, true, new int[] { 1, 1000 }, false, 1); // ExplGetVolumes(1);
            int n      = actual.ExplCheckReestr("КО#СА", 0, 1);

            n = actual.ExplCheckReestr("КО#СА", 1, 1);
            n = actual.ExplCheckReestr("КОСА", 0, 1);
            n = actual.ExplCheckReestr("КОСА", 1, 1);
            n = actual.ExplCheckReestr("КОСА#", 0, 1);
            n = actual.ExplCheckReestr("КОСА#", 1, 1);
            SemanticLinkHelper.ExplDictService.elList[] page1 = null;
            SemanticLinkHelper.ExplDictService.elList[] page2 = null;
            SemanticLinkHelper.ExplDictService.elList[] page3 = null;
            if (n != -1)
            {
                page1 = actual.SupplyPageOfData(n, 10, true, string.Empty, true, new int[] { 1 }, false, 1);
                page2 = actual.SupplyPageOfData(n, 10, true, string.Empty, false, new int[] { 1, 1000 }, false, 1);
                page3 = actual.SupplyPageOfData(1000, 10, true, string.Empty, false, new int[] { 1000, 5000 }, false, 1);
                page3 = actual.SupplyPageOfData(n2, 10, true, string.Empty, false, new int[] { 1000, 5000 }, false, 1);
                int a = 1;
            }
            n = actual.ExplCheckReestr("КОСА#", 2, 1);
            n = actual.ExplCheckReestr("КОСА#", 3, 1);
            n = actual.ExplCheckReestr("КОСА#", 4, 1);
            n = actual.ExplCheckReestr("КОСА#", 5, 1);

            Assert.Inconclusive("Verify the correctness of this test method.");
        }