public void MapBOToModel() { var mapper = new BOLBreedMapper(); BOBreed bo = new BOBreed(); bo.SetProperties(1, "A"); ApiBreedResponseModel response = mapper.MapBOToModel(bo); response.Id.Should().Be(1); response.Name.Should().Be("A"); }
public void MapBOToEF() { var mapper = new DALBreedMapper(); var bo = new BOBreed(); bo.SetProperties(1, "A"); Breed response = mapper.MapBOToEF(bo); response.Id.Should().Be(1); response.Name.Should().Be("A"); }
public void MapBOToModelList() { var mapper = new BOLBreedMapper(); BOBreed bo = new BOBreed(); bo.SetProperties(1, "A"); List <ApiBreedResponseModel> response = mapper.MapBOToModel(new List <BOBreed>() { { bo } }); response.Count.Should().Be(1); }