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

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

            response.Count.Should().Be(1);
        }
Ejemplo n.º 2
0
        public void MapModelToBO()
        {
            var mapper = new BOLVenueMapper();
            ApiVenueRequestModel model = new ApiVenueRequestModel();

            model.SetProperties("A", "A", 1, "A", "A", "A", "A", 1, "A");
            BOVenue response = mapper.MapModelToBO(1, model);

            response.Address1.Should().Be("A");
            response.Address2.Should().Be("A");
            response.AdminId.Should().Be(1);
            response.Email.Should().Be("A");
            response.Facebook.Should().Be("A");
            response.Name.Should().Be("A");
            response.Phone.Should().Be("A");
            response.ProvinceId.Should().Be(1);
            response.Website.Should().Be("A");
        }
Ejemplo n.º 3
0
        public void MapBOToModel()
        {
            var     mapper = new BOLVenueMapper();
            BOVenue bo     = new BOVenue();

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

            response.Address1.Should().Be("A");
            response.Address2.Should().Be("A");
            response.AdminId.Should().Be(1);
            response.Email.Should().Be("A");
            response.Facebook.Should().Be("A");
            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
            response.Phone.Should().Be("A");
            response.ProvinceId.Should().Be(1);
            response.Website.Should().Be("A");
        }