示例#1
0
        public void MapBOToModelList()
        {
            var      mapper = new BOLClientMapper();
            BOClient bo     = new BOClient();

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

            response.Count.Should().Be(1);
        }
示例#2
0
        public void MapBOToModel()
        {
            var      mapper = new BOLClientMapper();
            BOClient bo     = new BOClient();

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

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