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); }
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"); }