Ejemplo n.º 1
0
        public void MapBOToModelList()
        {
            var mapper = new BOLVProductAndDescriptionMapper();
            BOVProductAndDescription bo = new BOVProductAndDescription();

            bo.SetProperties("A", "A", "A", 1, "A");
            List <ApiVProductAndDescriptionResponseModel> response = mapper.MapBOToModel(new List <BOVProductAndDescription>()
            {
                { bo }
            });

            response.Count.Should().Be(1);
        }
Ejemplo n.º 2
0
        public void MapBOToModel()
        {
            var mapper = new BOLVProductAndDescriptionMapper();
            BOVProductAndDescription bo = new BOVProductAndDescription();

            bo.SetProperties("A", "A", "A", 1, "A");
            ApiVProductAndDescriptionResponseModel response = mapper.MapBOToModel(bo);

            response.CultureID.Should().Be("A");
            response.Description.Should().Be("A");
            response.Name.Should().Be("A");
            response.ProductID.Should().Be(1);
            response.ProductModel.Should().Be("A");
        }
Ejemplo n.º 3
0
        public void MapBOToEF()
        {
            var mapper = new DALVProductAndDescriptionMapper();
            var bo     = new BOVProductAndDescription();

            bo.SetProperties("A", "A", "A", 1, "A");

            VProductAndDescription response = mapper.MapBOToEF(bo);

            response.CultureID.Should().Be("A");
            response.Description.Should().Be("A");
            response.Name.Should().Be("A");
            response.ProductID.Should().Be(1);
            response.ProductModel.Should().Be("A");
        }