public void MapModelToEntity()
        {
            var mapper = new DALPersonMapper();
            ApiPersonServerRequestModel model = new ApiPersonServerRequestModel();

            model.SetProperties("A");
            Person response = mapper.MapModelToEntity(1, model);

            response.PersonName.Should().Be("A");
        }
        public void MapEntityToModel()
        {
            var    mapper = new DALPersonMapper();
            Person item   = new Person();

            item.SetProperties(1, "A");
            ApiPersonServerResponseModel response = mapper.MapEntityToModel(item);

            response.PersonId.Should().Be(1);
            response.PersonName.Should().Be("A");
        }
        public void MapEntityToModelList()
        {
            var    mapper = new DALPersonMapper();
            Person item   = new Person();

            item.SetProperties(1, "A");
            List <ApiPersonServerResponseModel> response = mapper.MapEntityToModel(new List <Person>()
            {
                { item }
            });

            response.Count.Should().Be(1);
        }