public void MapEntityToModel() { var mapper = new DALBreedMapper(); Breed item = new Breed(); item.SetProperties(1, "A", 1); ApiBreedServerResponseModel response = mapper.MapEntityToModel(item); response.Id.Should().Be(1); response.Name.Should().Be("A"); response.SpeciesId.Should().Be(1); }
public void MapEntityToModelList() { var mapper = new DALBreedMapper(); Breed item = new Breed(); item.SetProperties(1, "A", 1); List <ApiBreedServerResponseModel> response = mapper.MapEntityToModel(new List <Breed>() { { item } }); response.Count.Should().Be(1); }