Esempio n. 1
0
        public void AddChildToRegister()
        {
            Child suzie = new Child();

            suzie.FirstName = "Laura";
            suzie.LastName  = "McDonald";
            suzie.Address   = "123 Main St. USA";

            ChildRegister childRegister = new ChildRegister();

            childRegister.AddChild(suzie);

            Assert.Contains(suzie, childRegister.GetRegister());
        }
Esempio n. 2
0
        public void AddChildToRegister()
        {
            Child suzie = new Child()
            {
                FirstName = "Suzie",
                LastName  = "McDonell",
                Address   = "346 Underdog Way"
            };

            ChildRegister childRegister = new ChildRegister();

            childRegister.AddChild(suzie);

            Assert.Contains(suzie, childRegister.GetRegister());
        }
Esempio n. 3
0
        public void AddChildToRegister()
        {
            Child dude = new Child();

            dude.FirstName = "Dude";
            dude.LastName  = "El Duderino";
            dude.Address   = "Passadena";

            ChildRegister childRegister = new ChildRegister();

            childRegister.AddChild(dude);


            Assert.Contains(dude, childRegister.GetRegister());
        }