public void MapBreweryToDTO_ShouldReturnEmptyDTOIfFailed() { //Arrange //Act var sut = BreweryMapper.MapBreweryToDTO(null); //Assert Assert.AreEqual(sut.ID, null); Assert.AreEqual(sut.Name, null); Assert.AreEqual(sut.Beers, null); Assert.AreEqual(sut.Country, null); }
public void MapDTOToBrewery_ShouldReturnEmptyCountryIfFailed() { //Arrange //Act var sut = BreweryMapper.MapDTOToBrewery(null); //Assert Assert.AreEqual(sut.ID, null); Assert.AreEqual(sut.Name, null); Assert.AreEqual(sut.Country, null); Assert.AreEqual(sut.CountryID, default); Assert.AreEqual(sut.Beers, null); Assert.AreEqual(sut.CreatedOn, default); Assert.AreEqual(sut.ModifiedOn, null); Assert.AreEqual(sut.DeletedOn, null); Assert.AreEqual(sut.IsDeleted, false); }