Example #1
0
        public void CreatePersonBidder_ShouldThrow()
        {
            var personBidder = new PersonBidder();

            personBidder.Person = null;

            Assert.ThrowsAny <Exception>(() => personBidder.ValidateObject());
        }
Example #2
0
        public void CreatePersonBidder_ShouldThrowDueBadId(int id)
        {
            Person person       = new Person();
            var    personBidder = new PersonBidder();

            personBidder.Person   = person;
            personBidder.IdBidder = id;

            Assert.ThrowsAny <Exception>(() => personBidder.ValidateObject());
        }
Example #3
0
        public void CreatePersonBidder_ShouldInstantiatePersonBidder()
        {
            Person person       = new Person();
            var    personBidder = new PersonBidder();

            personBidder.Person = person;

            personBidder.ValidateObject();
            Assert.NotNull(personBidder);
        }