public void VerifyDuplicateUsernameRegistration() { KidsAcademyRegistrationPage.Instance.NavigateToNewAccountRegistration(); Kid kid = new Kid("Kide25", "123456", "123456", "Пенчо", "Стораро", "*****@*****.**", "03/11/1999", "0880000000", "123", "Четвърти", "София", "ASSSSS", "Пенка", "Стораро", "*****@*****.**", "0880000000"); KidsAcademyRegistrationPage.Instance.FillForm(kid); KidsAcademyRegistrationPage.Instance.VerifyDuplicateUsernameError(); }
public void VerifyDifferentPasswordsErrorMessage() { Kid kid = new Kid(); kid.Password = "******"; kid.PasswordAgain = "SanoBezRasizan"; KidsAcademyRegistrationPage.Instance.Registration(kid); KidsAcademyRegistrationPage.Instance.VerifyDifferentPasswordsError(); }
public static void Main() { Kid kid1 = new Kid("Craig", 11); Kid kid2 = new Kid("Sally", 10); Kid kid3 = new Kid(); Console.Write("Kid #1: "); kid1.PrintKid(); Console.Write("Kid #2: "); kid2.PrintKid(); Console.Write("Kid #3: "); kid3.PrintKid(); Console.ReadLine(); }
public IActionResult updateAssessments(DateTakenViewModel model) { if (HttpContext.Session.GetInt32("Permission") < 5) { return(RedirectToAction("dashboard", "Dashboard")); } if (HttpContext.Session.GetInt32("Permission") == null) { return(RedirectToAction("Index", "Home")); } if (!ModelState.IsValid) { int?id = HttpContext.Session.GetInt32("kidId"); ViewBag.singleKid = _context.Kids.Where(kiddo => kiddo.id == id).Include(t => t.Teacher).ToArray(); List <DateTaken> DateTakens = _context.DateTaken.Where(x => x.KidId == id).Include(a => a.Assessment).OrderByDescending(d => d.Date).ToList(); ViewBag.assessmentsTaken = DateTakens; TimeSpan age = DateTime.Now - ViewBag.singleKid[0].Birthdate; double decimalYears = age.TotalDays / 365; var years = Math.Truncate(decimalYears); double decimalMonths = (age.TotalDays % 365) / 30; var months = Convert.ToInt32(decimalMonths); if (months == 12) { months = 11; } ViewBag.years = years; ViewBag.months = months; ViewBag.assessments = _context.Assessments; ViewBag.permission = HttpContext.Session.GetInt32("Permission"); return(View("updateAssessmentPage")); } Kid kid = _context.Kids.SingleOrDefault(x => x.id == HttpContext.Session.GetInt32("kidId")); Assessment assessment = _context.Assessments.SingleOrDefault(a => a.Name == model.Asst); DateTaken newDateTaken = new DateTaken { Date = model.Date, Score = model.Score, Progress = model.Progress, Comment = model.Comment, AssessmentId = assessment.id, KidId = kid.id }; _context.DateTaken.Add(newDateTaken); _context.SaveChanges(); return(RedirectToAction("updateAssessmentPage", new { id = HttpContext.Session.GetInt32("kidId") })); }
public void CreateOrUpdate(KidBindingModel model) { using (var context = new SchoolAgainDatabase()) { using (var transaction = context.Database.BeginTransaction()) { try { Kid element = model.Id.HasValue ? null : new Kid(); if (model.Id.HasValue) { element = context.Kids.FirstOrDefault(rec => rec.ClientId == model.ClientId && rec.KidName == model.KidName); if (element == null) { throw new Exception("Такой питомец уже существует"); } element.KidName = model.KidName; element.Height = model.Height; element.Free = model.Free; element.Age = model.Age; element.Gender = model.Gender; element.ClientId = model.ClientId; context.SaveChanges(); } else { element.KidName = model.KidName; element.Height = model.Height; element.Free = model.Free; element.Age = model.Age; element.Gender = model.Gender; element.ClientId = model.ClientId; } context.Kids.Add(element); context.SaveChanges(); transaction.Commit(); } catch (Exception) { transaction.Rollback(); throw; } } } }
public ActionResult Update(KidViewModel kidViewModel) { List <Kid> allKids = UnitOfWork.UOW.KidRepository.GetAll(); Kid kid = allKids.Where(x => x.Id == kidViewModel.Id).FirstOrDefault(); List <Group> allGroups = UnitOfWork.UOW.GroupRepository.GetAll(); Group group = allGroups.Where(x => x.Id == kidViewModel.GroupID).FirstOrDefault(); kid.Groups = group; kid.Id = kidViewModel.Id; kid.Name = kidViewModel.Name; kid.Age = kidViewModel.Age; kid.EGN = kidViewModel.EGN; kid.Sex = kidViewModel.Sex; uow.KidRepository.Update(kid); uow.Save(); return(RedirectToAction(nameof(Index))); }
private void ValidateKidBedtimeTime(Kid kid) { var systemDefault = _context.DefaultSystem.Select(r => r).First(); var mint = Convert.ToDateTime(systemDefault.MinTime); var maxt = Convert.ToDateTime(systemDefault.MaxTime); var bedtime = Convert.ToDateTime(kid.Bedtime); if (bedtime <mint& bedtime> maxt) { ModelState.AddModelError("Bedtime", "Time cannot start before 5pm or after 4am"); } if (kid.Bedtime == null) { ModelState.AddModelError("Bedtime", "Time required between 5 pm and 4 am"); } }
public ActionResult Create([Bind(Include = "KidID,FirstName,LastName,Address,DOB,MedicalIssues,MedicalIntervention,GuardianFirstName,GuardianLastName,GuardianContactNumber,ContactEmail")] Kid child) { //Check for kid already in database if (db.Kids.Any(k => k.DOB == child.DOB && k.LastName == child.LastName && k.FirstName == child.FirstName && k.Address == child.Address && k.GuardianFirstName == child.GuardianFirstName && k.GuardianLastName == child.GuardianLastName)) { return(RedirectToAction("Duplicate")); } else if (ModelState.IsValid) { db.Kids.Add(child); db.SaveChanges(); return(RedirectToAction("KidDetails", new { id = child.KidID })); } return(View(child)); }
public static void Main() { // Create objects // Objects must be created using the new operator: Kid kid1 = new Kid("Craig", 11); Kid kid2 = new Kid("Sally", 10); // Create an object using the default constructor: Kid kid3 = new Kid(); // Display results: Console.Write("Kid #1: "); kid1.PrintKid(); Console.Write("Kid #2: "); kid2.PrintKid(); Console.Write("Kid #3: "); kid3.PrintKid(); }
public async Task <ActionResult> Create(Kid epm) { string Baseurl = "http://localhost:8082/"; using (var client = new HttpClient()) { client.BaseAddress = new Uri(Baseurl); client.DefaultRequestHeaders.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/json")); // client.DefaultRequestHeaders.Add("X-Miva-API-Authorization", "MIVA xxxxxxxxxxxxxxxxxxxxxx"); var response = await client.PostAsJsonAsync("SpringMVC/servlet/AddKid", epm); if (response.IsSuccessStatusCode) { return(RedirectToAction("IndexKid")); } } return(View(epm)); }
public bool Add(Kid newKid) { using (var sql = new NpgsqlConnection(ConnectionProvider.GetConnectionString())) { var response = sql.Execute(@" INSERT INTO kid (name, birthdate, cpf, sex, availability) VALUES (@name, @birthdate, @cpf, @sex::SEX, @availability)", new { newKid.name, birthdate = newKid.birthDate, cpf = newKid.CPF, sex = char.ToUpper(newKid.sex.ToString().ElementAt(0)).ToString(), availability = (int)newKid.availability }); return(Convert.ToBoolean(response)); } }
public Kid KidGenerator() { Kid randKid = new Kid { Gender = (Sex)rnd.Next(0, 2) }; Generator g = new Generator(); randKid.Name = g.GenerateDefault(randKid.Gender == Sex.female ? Gender.woman : Gender.man); randKid.Name = randKid.Name.Replace("<center><b><font size=7>", "").Replace("\n", "").Replace("</font></b></center>", ""); randKid.Name = randKid.Name.Substring(1, randKid.Name.Length - 1); //age and dateburth generator randKid.Age = rnd.Next(0, 16); //randKid.DateOfBurth = GenerateBirthDate(randKid); IdGeneratorForAdults id = new IdGeneratorForAdults(); randKid.Ids.Add(id.IdGenerator()); return(randKid); }
public IActionResult Post(string values) { var model = new Kid(); var _values = JsonConvert.DeserializeObject <IDictionary>(values); PopulateModel(model, _values); if (!TryValidateModel(model)) { return(BadRequest(GetFullErrorMessage(ModelState))); } var result = _context.Kids.Add(model); _context.SaveChanges(); return(Json(result.Entity.Id)); }
public static void Main() { // Create objects // Objects must be created using the new operator: Kid kid1 = new Kid("Craig", 11); Kid kid2 = new Kid("Sally", 10); // Create an object using the default constructor: Kid kid3 = new Kid(); // Display results: Console.Write("Kid #1: "); kid1.PrintKid(); Console.Write("Kid #2: "); kid2.PrintKid(); Console.Write("Kid #3: "); kid3.PrintKid(); }
static void Main(string[] args) { PlayingRoom room = new PlayingRoom(); room.Open(); Parent parent = new Parent(); Kid kid = new Kid(); parent.Son = kid; kid.Father = parent; room.PrintToysInfo(); parent.Cash = 1000; parent.MakeOrder(room); kid.PrintToysList(); Console.WriteLine("Room after order: "); room.PrintToysInfo(); }
public ActionResult Edit(Kid epm) { HttpClient client = new HttpClient(); Kid Kid = null; client.BaseAddress = new Uri("http://localhost:8082"); //HTTP POST var putTask = client.PutAsJsonAsync <Kid>("SpringMVC/servlet/ModifyKid", epm); putTask.Wait(); var result = putTask.Result; if (result.IsSuccessStatusCode) { return(RedirectToAction("IndexKid")); } return(View()); }
public void GetById_MemberUser_IsParent_ReturnsOk() { var kid = new Kid { Id = 1, FirstName = "John", LastName = "Doe", Parents = new[] { new UserKid { UserId = 19 }, new UserKid { UserId = 20 } } }; _kidRepoMock.Setup(x => x.GetKidWithChildEntities(1)).Returns(Task.FromResult(kid)); var kidDetail = new KidDetail { Id = kid.Id, FirstName = kid.FirstName, LastName = kid.LastName, Parents = new[] { new UserDetail { Id = 19, FirstName = "Leia" }, new UserDetail { Id = 20, FirstName = "Han" } } }; _mapperMock.Setup(x => x.Map <KidDetail>(kid)).Returns(kidDetail); var expected = new OkObjectResult(kidDetail); var actual = _kidsController.Get(1).Result; Assert.IsInstanceOfType(actual, typeof(OkObjectResult)); Assert.AreEqual(expected.Value, ((OkObjectResult)actual).Value); }
/// <inheritsdoc /> public override bool Equals(Jwk?other) { if (ReferenceEquals(this, other)) { return(true); } if (!(other is PasswordBasedJwk key)) { return(false); } if (Kid.EncodedUtf8Bytes.Length != 0 && other.Kid.EncodedUtf8Bytes.Length != 0) { return(Kid.Equals(other.Kid)); } return(_inner.Equals(key._inner)); }
public ActionResult Create(KidViewModel kidViewModel) { List <Parent> allParents = UnitOfWork.UOW.ParentRepository.GetAll(); Parent currentParent = allParents.Where(x => x.Id == kidViewModel.ParentId).FirstOrDefault(); Kid kid = new Kid() { Id = kidViewModel.Id, Name = kidViewModel.Name, Age = kidViewModel.Age, EGN = kidViewModel.EGN, Sex = kidViewModel.Sex, Parents = currentParent, Groups = uow.GroupRepository.GetByID(kidViewModel.GroupID) }; UnitOfWork.UOW.KidRepository.Create(kid); UnitOfWork.UOW.Save(); return(RedirectToAction(nameof(Index))); }
// GET: Kid/Edit/5 public ActionResult Edit(int id) { HttpClient client = new HttpClient(); Kid Kid = null; client.BaseAddress = new Uri("http://localhost:8082"); //HTTP GET("SpringMVC/servlet/GetActivities") var responseTask = client.GetAsync("SpringMVC/servlet/retrieveKid/" + id.ToString()); var result = responseTask.Result; if (result.IsSuccessStatusCode) { var readTask = result.Content.ReadAsAsync <Kid>(); Kid = readTask.Result; } return(View(Kid)); }
public EnemyFsm(NavMeshAgent nav, Transform transform, Kid owner, Transform player, LevelManager lm) { _nav = nav; baseSpeed = nav.speed; _owner = owner; _lm = lm; DestroyTarget = new DestroyTargetState(_nav, transform, _owner); Disable = new DisabledState(_nav, transform, _owner); Flee = new FleeState(_nav, transform, _owner, player, _lm); LeaveLevel = new LeaveLevelState(_nav, transform, _owner, _lm); LeaveRoom = new LeaveRoomState(_nav, transform, _owner, _lm); ToProp = new ToPropState(_nav, transform, _owner); Victory = new VictoryState(_nav, transform, _owner, _lm); ToRoom = new ToRoomState(_nav, transform, _owner); owner.Fsm = this; SetObjective(_lm.GetRoom(_owner.transform.position)); ChangeState(ToRoom); }
public async Task <IActionResult> Create([Bind("FirstName,SecondName,FatherName,MotherName,Diseases,TShirtSize,SiblingCount,FavoriteActivities," + "Address,Sex,Grade,KindergarterId,TutorPrincipalId,TutorSecundaryId,TutorAutorizedId,PediatricianId,BirthDate,Id")] Kid kid) { if (ModelState.IsValid) { kid.Id = Guid.NewGuid(); _context.Add(kid); await _context.SaveChangesAsync(); //return RedirectToAction(nameof(Index)); //ViewBag.MensajeCreado = "El niño ha sido creado exitosamente"; //ViewData["Mensaje"] = "El niño ha sido creado exitosamente"; TempData["TempMessage"] = "Niño creado exitosamente."; return(RedirectToAction(nameof(Details), kid)); //return View("Details",kid); } ViewData["KindergarterId"] = new SelectList(_context.Kindergarters, "Id", "Id", kid.KindergarterId); return(View(kid)); }
public Booking(Customer existingcustomer, Kid existingkid) { //estabilsh db connection db = new Database(); db.connect(); InitializeComponent(); this.existingcustomer = existingcustomer; this.existingkid = existingkid; //if customer already exist we dont need to create a new one if (existingcustomer != null) { book1pnl.Visible = false; } //if kid already exist we do not need to create a new one if (existingkid != null && !book1pnl.Visible) { BookingDB bookingdb = new BookingDB(db); alreadybooked = bookingdb.getalldates(existingkid.Forename, existingkid.Surname).Mondays; foreach (DateTime booking in alreadybooked) { calculatePrice(booking, false); childsprice = finalprice; } //setup dates for DOB DOBpicker.MinDate = DateTime.Now.AddMonths(-48); DOBpicker.MaxDate = DateTime.Now.AddMonths(-6); //setup booking populatemonthscbx(true); populateyearscbx(); initaliseweeks(DateTime.Now); book6pnl.Visible = true; } else { //if existing customer but no existing kid book2pnl.Visible = true; book3pnl.Visible = true; //setup dates for DOB DOBpicker.MinDate = DateTime.Now.AddMonths(-48); DOBpicker.MaxDate = DateTime.Now.AddMonths(-6); } }
public void PopulateDB() { for (int i = 0; i < 20; i++) { Kid kid = new Kid { Age = i, KidDiagnosis = "Stomach Cancer", KidFistName = "Jack" + i, FundRaiserID = 5, //FundRaiser = FundRaiserService.GetById(5), KidSecondName = "Sunday" + i, MedicalProfessionalEmail = i + "@gmail.com", }; service.Add(kid); service.Commit(); } }
static void Main(string[] args) { //create a constructor object to start building Kid aKid = new Kid(); aKid.Name = "Elizabeth"; //Elizabeth use Monkey moid to make a monkey Console.WriteLine("{0} start making a monkey",aKid.Name); AnimalBuilder builderA = new MonkeyBuilder(); aKid.MakeAnimal(builderA); builderA.aAnimal.ShowMe(); //Elizabeth use Kitten moid to make a kitten Console.WriteLine("{0} start making a kitten",aKid.Name); AnimalBuilder builderB = new KittenBuilder(); aKid.MakeAnimal(builderB); builderB.aAnimal.ShowMe(); Console.Read(); }
private void Update() { Kid kid = GetKid(); interactBubble.SetActive(kid != null); if (kid != null) { int indexDown = GetIndexDown(); if (indexDown == kid.ReqIndex) { kid.CompleteRequest(true); } else if (indexDown != -1) { kid.CompleteRequest(false); } } }
internal void SaveKid(Kid k) { bool test = true; try { KidProvider.Save(k); } catch (Exception e) { test = false; new ErrorMessage(this, "Det er allerede registrert en person med samme fornavn, etternavn, fødselsår og postnummer. Dersom du aldri har registeret deg før, legg til en ekstra bokstav i fornavnet ditt: For eksempel hvis du heter \"Jan\", skriv \"Jan J.\""); } if (test) { RegisterVisit(k); ReEnableMainWindow(); kidForm.Dispose(); } }
public async Task <IHttpActionResult> RegisterAsync(Kid kid) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var user = new Kid() { UserName = kid.Email, Email = kid.Email, Location = kid.Location, Parent = kid.Parent }; IdentityResult result = await UserManager.CreateAsync(user, kid.PasswordHash); if (!result.Succeeded) { return(GetErrorResult(result)); } return(Ok()); }
public IHttpActionResult Remove(string id) { if (id != null) { Kid kid = context.Kids.FirstOrDefault(k => k.Id == id); { if (kid != null) { context.Kids.Remove(kid); context.SaveChanges(); return(Ok()); } else { return(NotFound()); } } } return(BadRequest()); }
private void MakeEmVisitUs() { for (int i = 0; i < 600; i++) { Kid k = (Kid)users[rand.Next(users.Count - 1)]; Visit v = new Visit(); v.KidId = k; DateTime d = new DateTime(rand.Next(2011, 2013), rand.Next(1, 13), rand.Next(1, 28)); v.VisitTime = d; v.SetRestrictionDate(); try { VisitProvider.Save(v); } catch (Exception e) { Console.WriteLine(e.StackTrace); } } }
public void ShowDialog(Kid kid) { gameObject.SetActive(true); TitleText.GetComponentInChildren <Text>().text = $"SEND A POOR DEFENSELESS { kid.title } WITH TO GET AIR FOR YOU - ${ kid.price }"; LocationButtonToBeCloned.enabled = false; var i = 0; foreach (var pair in GameState.PurchasedSources) { var name = pair.Key; var info = pair.Value; if (!info.bought) { continue; } var newButton = GameObject.Instantiate( LocationButtonToBeCloned, LocationButtonToBeCloned.transform.position, Quaternion.identity, LocationButtonToBeCloned.transform.parent ); var rectTransform = newButton.GetComponent <RectTransform>(); rectTransform.anchoredPosition -= new Vector2(0f, i * 100f); newButton.enabled = true; newButton.GetComponentInChildren <Text>().text = $"{ name }"; newButton.onClick.AddListener(() => BuyChild(kid, name, info)); clonedButtons.Add(newButton); ++i; } }
private void LeaveAnyKid() { int index = 0; do { index = Random.Range(0, trasformObjective.childCount); } while (trasformObjective.GetChild(index).childCount == 0); Kid kid = trasformObjective.GetChild(index).GetChild(0).GetComponent <Kid>(); kid.canMove = true; kid.rb2D.bodyType = RigidbodyType2D.Dynamic; kid.detectCollider.enabled = true; kid.transform.GetChild(0).GetComponent <BoxCollider2D>().enabled = true; kid.gameObject.transform.parent = transformKids; countTimeLeave = Random.Range(20 - countKids, 40 - countKids * 3); countKids--; }
public async Task <IActionResult> Report2(Kid kid) { //Activity activity = await _context.Activity.FindAsync(ea.ActivityId); TempData["Grade"] = kid.Grade.ToString(); var kids = _context.Kid .Where(k => k.Grade == kid.Grade) .Include(k => k.TutorPrincipal) .ToList(); var result = (from k in _context.Kid.Include(k => k.TutorPrincipal) //join enrollment in _context.Enrollments // on k.Id equals enrollment.KidId //join enrollActivity in _context.EnrollActivity.Include(e => e.Enrollment.Kid.TutorPrincipal).Include(e => e.Service) // on enrollment.Id equals enrollActivity.EnrollmentId //join activit in _context.Activity // on enrollActivity.ActivityId equals activit.Id where k.Grade == kid.Grade select kid).ToList(); //var enrolls = new List<EnrollActivity>() { new EnrollActivity { Id = Guid.NewGuid() } }; return(View(kids)); }
public ActionResult UpdateKid(int id, IEnumerable <KidsUpdateDto> kidsUpdateDto) { foreach (var kidUpdate in kidsUpdateDto) { Kid KidModelFromRepo = _repository.GetKidsByKidId(kidUpdate.KidId); if (KidModelFromRepo == null) { return(NotFound()); } _mapper.Map(kidUpdate, KidModelFromRepo); _repository.UpdateKids(KidModelFromRepo); _repository.SaveChanges(); } return(NoContent()); }
public IHttpActionResult UpdateKid(Kid kid) { try { if (this.ActiveUser.Id != kid.ParentId) { return(BadRequest()); } kid.State = BaseState.Modified; Mgr.AddUpdate(kid); Unit.SaveChanges(); return(Ok(kid)); } catch (Exception ex) { Unit.LogError(ex, this.ToString(), this.ActionContext.ActionArguments.ToList()); return(InternalServerError(ex)); } }
public IActionResult OnPost(int kidId) { if (Program.loggedUser == false) { return(RedirectToPage("./NotFound")); } Kid = kindergardenData.GetKidById(kidId); if (Kid == null) { return(RedirectToPage("./NotFound")); } Kid.Status = Statuses.Odbien; kindergardenData.Commit(); MailHelper mailHelper = new MailHelper(Configuration); Parents parent = kindergardenData.GetParentById((int)Kid.ParentId); mailHelper.SendApplicationDenied(parent.Email, parent.ImeTatko + " " + parent.ImeMajka + " " + Kid.LastName); return(RedirectToPage("./ListApplications")); }
public void VerifyInvalidPhoneErrorMessage() { Kid kid = new Kid(); kid.MobilePhone = "Plo6tad tanqnmyn"; KidsAcademyRegistrationPage.Instance.Registration(kid); KidsAcademyRegistrationPage.Instance.VerifyInvalidPhoneMessage(); }
public void VerifyInvalidSchoolErrorMessage() { Kid kid = new Kid(); kid.School = ")()SFT&(G59asd9;;"; KidsAcademyRegistrationPage.Instance.Registration(kid); KidsAcademyRegistrationPage.Instance.VerifyInvalidSchoolMessage(); }
// Use this for initialization void Start() { animHandler = GetComponent<AnimationHandler>(); kid = GameObject.FindWithTag("kid").GetComponent<Kid>(); camera = GameObject.FindGameObjectWithTag("MainCamera"); if (comeFromRight) { var renderer = GetComponentInChildren<MeshRenderer>(); renderer.enabled = false; state = State.WaitingToSpawn; } else { state = State.Idle; } }
public void VerifyInvalidLastNameErrorMessage() { Kid kid = new Kid(); kid.LastNameInBulgarian = "Plo6tad tanqnmyn"; KidsAcademyRegistrationPage.Instance.Registration(kid); KidsAcademyRegistrationPage.Instance.VerifyInvalidLastNameMessage(); }
public void AddKid(Kid kid) { this.Kids.Add(kid); }
public override Pawn create() { var kid = new Kid(); kid.pos = pos; return kid; }
public void VerifyInvalidParentPhoneErrorMessage() { Kid kid = new Kid(); kid.ParentPhone = "Rambo Silek"; KidsAcademyRegistrationPage.Instance.Registration(kid); KidsAcademyRegistrationPage.Instance.VerifyInvalidParentPhoneMessage(); }
public void VerifyRegisteredUserWithEveryFieldFilled() { KidsAcademyRegistrationFacade facade = new KidsAcademyRegistrationFacade(); Kid kid = new Kid("Kide31", "123456", "123456", "Пенчо", "Стораро", "*****@*****.**", "03/11/1999", "0880000000", "123", "Четвърти", "София", "ASSSSS", "Пенка", "Стораро", "*****@*****.**", "0880000000"); facade.Register(kid); facade.VerifyRegisteredUser(); }
public void VerifyInvalidBirthDayErrorMessage() { Kid kid = new Kid(); kid.BirthDate = "Plo6tad tanqnmyn"; KidsAcademyRegistrationPage.Instance.Registration(kid); KidsAcademyRegistrationPage.Instance.VerifyInvalidBirthDayMessage(); }
public void VerifyInvalidUsernameErrorMessage() { Kid kid = new Kid(); kid.Username = "******"; KidsAcademyRegistrationPage.Instance.Registration(kid); KidsAcademyRegistrationPage.Instance.VerifyInvalidUsernameErrorMessage(); }