예제 #1
0
        public void MapBOToModel()
        {
            var       mapper = new BOLHandlerMapper();
            BOHandler bo     = new BOHandler();

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

            response.CountryId.Should().Be(1);
            response.Email.Should().Be("A");
            response.FirstName.Should().Be("A");
            response.Id.Should().Be(1);
            response.LastName.Should().Be("A");
            response.Phone.Should().Be("A");
        }
예제 #2
0
        public void MapBOToEF()
        {
            var mapper = new DALHandlerMapper();
            var bo     = new BOHandler();

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

            Handler response = mapper.MapBOToEF(bo);

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