Exemple #1
0
        public void MapEntityToModel()
        {
            var         mapper = new DALPaymentTypeMapper();
            PaymentType item   = new PaymentType();

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

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
Exemple #2
0
        public void MapEntityToModelList()
        {
            var         mapper = new DALPaymentTypeMapper();
            PaymentType item   = new PaymentType();

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

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