public ActionResult SignUp(UserData UserData, FormCollection collection) { try { string FirstName = UserData.FirstName; string LastName = UserData.LastName; string UserId = UserData.UserId; string Password = UserData.Password; string BillingAddress = UserData.BillingAddress; string ShippingAddress = UserData.ShippingAddress; double CardNumber = UserData.CardNumber; string CardType = UserData.CardType; DateTime CardExpiryDate = UserData.CardExpiryDate; double PhoneNumber = UserData.PhoneNumber; string EmailId = UserData.EmailId; ViewBag.SignUpMessage = LetsShopImplementation.CreateUser(UserId, Password, EmailId); return(View()); } catch (Exception ex) { return(RedirectToAction("ErrorPage", "Product")); } }
public void CreateUserTest() { string UserId = string.Empty; // TODO: Initialize to an appropriate value string Password = string.Empty; // TODO: Initialize to an appropriate value string EmailId = string.Empty; // TODO: Initialize to an appropriate value string expected = string.Empty; // TODO: Initialize to an appropriate value string actual; actual = LetsShopImplementation.CreateUser(UserId, Password, EmailId); Assert.AreEqual(expected, actual); //Assert.Inconclusive("Verify the correctness of this test method."); }