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); }
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); }
public void ChangeDefensiveBacks(DefensiveBacks defensiveBacks) { DefensiveBacks = defensiveBacks; }