private static void testCheckEmailVeryfied() { UserLogin userLogin = new UserLogin(); userLogin.Email = "*****@*****.**"; SqlUser.CheckEmailVeryfied(userLogin); }
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); }
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); }