Example #1
0
        public void MapBOToModel()
        {
            var    mapper = new BOLTeamMapper();
            BOTeam bo     = new BOTeam();

            bo.SetProperties(1, "A", 1);
            ApiTeamResponseModel response = mapper.MapBOToModel(bo);

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
            response.OrganizationId.Should().Be(1);
        }
Example #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);
        }
Example #3
0
        public void MapBOToModelList()
        {
            var    mapper = new BOLTeamMapper();
            BOTeam bo     = new BOTeam();

            bo.SetProperties(1, "A", 1);
            List <ApiTeamResponseModel> response = mapper.MapBOToModel(new List <BOTeam>()
            {
                { bo }
            });

            response.Count.Should().Be(1);
        }
Example #4
0
        public void MapBOToModel()
        {
            var    mapper = new BOLTeamMapper();
            BOTeam bo     = new BOTeam();

            bo.SetProperties("A", "A", "A", "A", "A", "A", "A", "A", "A");
            ApiTeamResponseModel response = mapper.MapBOToModel(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");
        }
Example #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");
        }