コード例 #1
0
        private static void testCheckEmailVeryfied()
        {
            UserLogin userLogin = new UserLogin();

            userLogin.Email = "*****@*****.**";

            SqlUser.CheckEmailVeryfied(userLogin);
        }
コード例 #2
0
        private static void testInsertUser()
        {
            User user = new User();

            user.FirstName      = "Test15";
            user.Surname        = "Test15";
            user.Email          = "Test15";
            user.DateOfBirth    = DateTime.Now;
            user.Password       = "******";
            user.CustomerID     = SqlDatabase.CustomerAtr;
            user.RoleID         = SqlDatabase.UserRoleId;
            user.ActivationCode = Guid.NewGuid().ToString();

            SqlUser.InsertUser(user);
        }
コード例 #3
0
        private static void testAddAddress()
        {
            User user = new User();

            user.UserID = 8;
            user.Email  = "";
            Customer customer = new Customer();

            customer.CompanyName   = "Test";
            customer.City          = "Test";
            customer.Street        = "Test";
            customer.ZipCode       = "00-000";
            customer.DiscountValue = 0;

            SqlUser.AddModyfyAddress(customer, user.Email);
        }