Esempio n. 1
0
        public void MapEFToBO()
        {
            var  mapper = new DALTeamMapper();
            Team entity = new Team();

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

            BOTeam response = mapper.MapEFToBO(entity);

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
            response.OrganizationId.Should().Be(1);
        }
Esempio n. 2
0
        public void MapBOToEF()
        {
            var mapper = new DALTeamMapper();
            var bo     = new BOTeam();

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

            Team response = mapper.MapBOToEF(bo);

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
            response.OrganizationId.Should().Be(1);
        }
Esempio n. 3
0
        public void MapEFToBOList()
        {
            var  mapper = new DALTeamMapper();
            Team entity = new Team();

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

            List <BOTeam> response = mapper.MapEFToBO(new List <Team>()
            {
                entity
            });

            response.Count.Should().Be(1);
        }
Esempio n. 4
0
        public void MapEFToBO()
        {
            var  mapper = new DALTeamMapper();
            Team entity = new Team();

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

            BOTeam response = mapper.MapEFToBO(entity);

            response.EnvironmentIds.Should().Be("A");
            response.Id.Should().Be("A");
            response.JSON.Should().Be("A");
            response.MemberUserIds.Should().Be("A");
            response.Name.Should().Be("A");
            response.ProjectGroupIds.Should().Be("A");
            response.ProjectIds.Should().Be("A");
            response.TenantIds.Should().Be("A");
            response.TenantTags.Should().Be("A");
        }
Esempio n. 5
0
        public void MapBOToEF()
        {
            var mapper = new DALTeamMapper();
            var bo     = new BOTeam();

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

            Team response = mapper.MapBOToEF(bo);

            response.EnvironmentIds.Should().Be("A");
            response.Id.Should().Be("A");
            response.JSON.Should().Be("A");
            response.MemberUserIds.Should().Be("A");
            response.Name.Should().Be("A");
            response.ProjectGroupIds.Should().Be("A");
            response.ProjectIds.Should().Be("A");
            response.TenantIds.Should().Be("A");
            response.TenantTags.Should().Be("A");
        }