Exemplo n.º 1
0
        public void XMLStatementShouldBeValid()
        {
            var customer = new Customer("Test Customer");

            var regularMovie = new Movie("RegularMovie", 0);
            var childMovie = new Movie("ChildMovie", 2);
            var newReleaseMovie = new Movie("NewRelease", 1);

            customer.AddRental(new Rental(regularMovie, 2));
            customer.AddRental(new Rental(childMovie, 3));
            customer.AddRental(new Rental(newReleaseMovie, 1));
            customer.AddRental(new Rental(newReleaseMovie, 3));

            Assert.AreEqual(GetExpectedXMLStatement(),
                            customer.XmlStatement());
        }