Ejemplo n.º 1
0
        public void TestIsExist()
        {
            DatabaseTestClass databaseTestClass = new DatabaseTestClass();

            databaseTestClass
            .ShowSelectLog("SELECT * FROM ServiceUser WHERE Name = @Name AND @", 3);

            Assert.True(databaseTestClass.DataLog.FileCount > 0);
        }
Ejemplo n.º 2
0
        public void TestPraseHolder()
        {
            DatabaseTestClass databaseTestClass = new DatabaseTestClass();

            var tryEntity = new ServiceUser()
            {
                UserName = "******", Password = "******"
            };
            var tryEntity2 = new ServiceUser()
            {
                UserName = "******", Password = "******"
            };

            var  config  = new CrudContext().GetProperty(CrudEnum.GetLogin);
            bool answer  = databaseTestClass.ShowExeculteLog(config, tryEntity);
            bool answer2 = databaseTestClass.ShowExeculteLog(config, tryEntity2);

            Assert.True(answer && !answer2);
        }