public void CreatePersonBidder_ShouldThrow() { var personBidder = new PersonBidder(); personBidder.Person = null; Assert.ThrowsAny <Exception>(() => personBidder.ValidateObject()); }
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()); }
public void CreatePersonBidder_ShouldInstantiatePersonBidder() { Person person = new Person(); var personBidder = new PersonBidder(); personBidder.Person = person; personBidder.ValidateObject(); Assert.NotNull(personBidder); }