public void Price_CannotBeLessThan0_notValid()
        {
            var ticket = new Ticket()
            {
                Price = -2.0M,
                Date  = _date
            };

            var result = TestModelHelper.Validate(ticket);

            Assert.AreEqual(1, result.Count);
        }
        public void Length_CannotBe0_notValid()
        {
            var film = new Film()
            {
                Title  = _title,
                Year   = _year,
                Length = 0
            };
            var result = TestModelHelper.Validate(film);

            Assert.AreEqual(1, result.Count);
        }
        public void TicketData_IsValid()
        {
            var ticket = new Ticket()
            {
                Price = _price,
                Date  = _date
            };

            var result = TestModelHelper.Validate(ticket);

            Assert.AreEqual(0, result.Count);
        }
        public void Year_MustBeLaterThanOldestFilm_notValid()
        {
            var film = new Film()
            {
                Title  = _title,
                Year   = 1894,
                Length = _length
            };
            var result = TestModelHelper.Validate(film);

            Assert.AreEqual(1, result.Count);
        }
        public void CustomerIsInvalid_notValid()
        {
            var customer = new Customer()
            {
                FirstName = "kamil",
                LastName  = "sarzyński",
                Email     = "kamilsarzynski.pl"
            };

            var result = TestModelHelper.Validate(customer);

            Assert.AreEqual(3, result.Count);
        }
        public void Email_ShouldBeCorrect_notValid()
        {
            var customer = new Customer()
            {
                FirstName = _firstname,
                LastName  = _lastname,
                Email     = "kamilsarzynski.pl"
            };

            var result = TestModelHelper.Validate(customer);

            Assert.AreEqual(1, result.Count);
        }
        public void LastName_ShoudBeCapitalized_notValid()
        {
            var customer = new Customer()
            {
                FirstName = _firstname,
                LastName  = "sarzynski",
                Email     = _email
            };

            var result = TestModelHelper.Validate(customer);

            Assert.AreEqual(1, result.Count);
        }
        public void Year_CannotBeInTheFuture_notValid()
        {
            var film = new Film()
            {
                Title  = _title,
                Year   = 2019,
                Length = _length
            };

            var result = TestModelHelper.Validate(film);

            Assert.AreEqual(1, result.Count);
        }