示例#1
0
        public void MapEFToBOList()
        {
            var mapper = new DALDashboardConfigurationMapper();
            DashboardConfiguration entity = new DashboardConfiguration();

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

            List <BODashboardConfiguration> response = mapper.MapEFToBO(new List <DashboardConfiguration>()
            {
                entity
            });

            response.Count.Should().Be(1);
        }
示例#2
0
        public void MapEFToBO()
        {
            var mapper = new DALDashboardConfigurationMapper();
            DashboardConfiguration entity = new DashboardConfiguration();

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

            BODashboardConfiguration response = mapper.MapEFToBO(entity);

            response.Id.Should().Be("A");
            response.IncludedEnvironmentIds.Should().Be("A");
            response.IncludedProjectIds.Should().Be("A");
            response.IncludedTenantIds.Should().Be("A");
            response.IncludedTenantTags.Should().Be("A");
            response.JSON.Should().Be("A");
        }
示例#3
0
        public void MapBOToEF()
        {
            var mapper = new DALDashboardConfigurationMapper();
            var bo     = new BODashboardConfiguration();

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

            DashboardConfiguration response = mapper.MapBOToEF(bo);

            response.Id.Should().Be("A");
            response.IncludedEnvironmentIds.Should().Be("A");
            response.IncludedProjectIds.Should().Be("A");
            response.IncludedTenantIds.Should().Be("A");
            response.IncludedTenantTags.Should().Be("A");
            response.JSON.Should().Be("A");
        }