public void MapEntityToModelList()
        {
            var      mapper = new DALCustomerMapper();
            Customer item   = new Customer();

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

            response.Count.Should().Be(1);
        }
        public void MapModelToEntity()
        {
            var mapper = new DALCustomerMapper();
            ApiCustomerServerRequestModel model = new ApiCustomerServerRequestModel();

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

            response.Email.Should().Be("A");
            response.FirstName.Should().Be("A");
            response.LastName.Should().Be("A");
            response.Phone.Should().Be("A");
        }
        public void MapEntityToModel()
        {
            var      mapper = new DALCustomerMapper();
            Customer item   = new Customer();

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

            response.Email.Should().Be("A");
            response.FirstName.Should().Be("A");
            response.Id.Should().Be(1);
            response.LastName.Should().Be("A");
            response.Phone.Should().Be("A");
        }