Esempio n. 1
0
        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");
        }
Esempio n. 2
0
        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);
        }