Exemplo n.º 1
0
        public void MapBOToModel()
        {
            var        mapper = new BOLUserRoleMapper();
            BOUserRole bo     = new BOUserRole();

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

            response.Id.Should().Be("A");
            response.JSON.Should().Be("A");
            response.Name.Should().Be("A");
        }
Exemplo n.º 2
0
        public void MapBOToModelList()
        {
            var        mapper = new BOLUserRoleMapper();
            BOUserRole bo     = new BOUserRole();

            bo.SetProperties("A", "A", "A");
            List <ApiUserRoleResponseModel> response = mapper.MapBOToModel(new List <BOUserRole>()
            {
                { bo }
            });

            response.Count.Should().Be(1);
        }
Exemplo n.º 3
0
        public void MapBOToEF()
        {
            var mapper = new DALUserRoleMapper();
            var bo     = new BOUserRole();

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

            UserRole response = mapper.MapBOToEF(bo);

            response.Id.Should().Be("A");
            response.JSON.Should().Be("A");
            response.Name.Should().Be("A");
        }