public void EntidadePreenchida_RetornaDtoPreenchido(Auction auction) { AuctionDto result = AuctionDto.From(auction); Assert.Equal(auction.Close, result.Close); Assert.Equal(auction.Id, result.Id); Assert.Equal(auction.InitialBid, result.InitialBid); Assert.Equal(auction.IsUsed, result.IsUsed); Assert.Equal(auction.Name, result.Name); Assert.Equal(auction.Open, result.Open); Assert.Equal(auction.Responsible.Id, result.Responsible.Id); Assert.Equal(auction.Responsible.Name, result.Responsible.Name); }
public void EntidadeNula_RetornaNull() { AuctionDto result = AuctionDto.From(null); Assert.Null(result); }