예제 #1
0
        public void MapEntityToModelList()
        {
            var    mapper = new DALStudioMapper();
            Studio item   = new Studio();

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

            response.Count.Should().Be(1);
        }
예제 #2
0
        public void MapEntityToModel()
        {
            var    mapper = new DALStudioMapper();
            Studio item   = new Studio();

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

            response.Address1.Should().Be("A");
            response.Address2.Should().Be("A");
            response.City.Should().Be("A");
            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
            response.Province.Should().Be("A");
            response.Website.Should().Be("A");
            response.Zip.Should().Be("A");
        }