public void MapEntityToModelList() { var mapper = new DALPetMapper(); Pet item = new Pet(); item.SetProperties(1, 1, 1, "A", 1); List <ApiPetServerResponseModel> response = mapper.MapEntityToModel(new List <Pet>() { { item } }); response.Count.Should().Be(1); }
public void MapEntityToModel() { var mapper = new DALPetMapper(); Pet item = new Pet(); item.SetProperties(1, 1, 1, "A", 1); ApiPetServerResponseModel response = mapper.MapEntityToModel(item); response.BreedId.Should().Be(1); response.ClientId.Should().Be(1); response.Id.Should().Be(1); response.Name.Should().Be("A"); response.Weight.Should().Be(1); }