コード例 #1
0
        public void MapEFToBOList()
        {
            var            mapper = new DALActionTemplateMapper();
            ActionTemplate entity = new ActionTemplate();

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

            List <BOActionTemplate> response = mapper.MapEFToBO(new List <ActionTemplate>()
            {
                entity
            });

            response.Count.Should().Be(1);
        }
コード例 #2
0
        public void MapEFToBO()
        {
            var            mapper = new DALActionTemplateMapper();
            ActionTemplate entity = new ActionTemplate();

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

            BOActionTemplate response = mapper.MapEFToBO(entity);

            response.ActionType.Should().Be("A");
            response.CommunityActionTemplateId.Should().Be("A");
            response.Id.Should().Be("A");
            response.JSON.Should().Be("A");
            response.Name.Should().Be("A");
            response.Version.Should().Be(1);
        }