Exemple #1
0
        public void CanAddDefensiveBacks()
        {
            var roster = new Roster();

            var dbs = new DefensiveBacks(new[]
            {
                new Cornerback{FirstName = "DeAngelo", LastName = "Hall", TeamName = "Washington Redskins"},
                new Cornerback{FirstName = "David", LastName = "Amerson", TeamName = "Washington Redskins"},
                new StrongSafety{FirstName = "Baccari", LastName = "Rambo", TeamName = "Washington Redskins"},
                new DefensiveBack{FirstName = "E", LastName = "Biggers", TeamName = "Washington Redskins"},
            });

            roster.ChangeDefensiveBacks(dbs);

            Assert.AreEqual(dbs, roster.DefensiveBacks);
        }
Exemple #2
0
        public void CanAddDefensiveBacks()
        {
            var roster = new Roster();

            var dbs = new DefensiveBacks(new[]
            {
                new Cornerback {
                    FirstName = "DeAngelo", LastName = "Hall", TeamName = "Washington Redskins"
                },
                new Cornerback {
                    FirstName = "David", LastName = "Amerson", TeamName = "Washington Redskins"
                },
                new StrongSafety {
                    FirstName = "Baccari", LastName = "Rambo", TeamName = "Washington Redskins"
                },
                new DefensiveBack {
                    FirstName = "E", LastName = "Biggers", TeamName = "Washington Redskins"
                },
            });

            roster.ChangeDefensiveBacks(dbs);

            Assert.AreEqual(dbs, roster.DefensiveBacks);
        }
Exemple #3
0
 public void ChangeDefensiveBacks(DefensiveBacks defensiveBacks)
 {
     DefensiveBacks = defensiveBacks;
 }
Exemple #4
0
 public void ChangeDefensiveBacks(DefensiveBacks defensiveBacks)
 {
     DefensiveBacks = defensiveBacks;
 }