Пример #1
0
        public void SignInOkTest()
        {
            var dal    = new ImageMarkingUsersDALImpl(new InfraDAL(), _configuration);
            var result = dal.GetUser("*****@*****.**");

            Assert.IsTrue(result.Tables[0].Rows.Count > 0);
        }
Пример #2
0
        public void RemoveUser()
        {
            var dal    = new ImageMarkingUsersDALImpl(new InfraDAL(), _configuration);
            var result = dal.UnSubscribeUser("*****@*****.**");

            result = dal.GetUser("*****@*****.**");
            Assert.AreEqual(0, result.Tables[0].Rows.Count);
        }
Пример #3
0
        public void CreateUser()
        {
            var dal    = new ImageMarkingUsersDALImpl(new InfraDAL(), _configuration);
            var result = dal.CreateUser("*****@*****.**", "111111");

            result = dal.GetUser("*****@*****.**");
            Assert.IsTrue(result.Tables[0].Rows.Count > 0);
        }