Exemplo n.º 1
0
        public void MapEFToBOList()
        {
            var mapper = new DALExtensionConfigurationMapper();
            ExtensionConfiguration entity = new ExtensionConfiguration();

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

            List <BOExtensionConfiguration> response = mapper.MapEFToBO(new List <ExtensionConfiguration>()
            {
                entity
            });

            response.Count.Should().Be(1);
        }
Exemplo n.º 2
0
        public void MapEFToBO()
        {
            var mapper = new DALExtensionConfigurationMapper();
            ExtensionConfiguration entity = new ExtensionConfiguration();

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

            BOExtensionConfiguration response = mapper.MapEFToBO(entity);

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