Exemplo n.º 1
0
        public void MapBOToModelList()
        {
            var mapper = new BOLDashboardConfigurationMapper();
            BODashboardConfiguration bo = new BODashboardConfiguration();

            bo.SetProperties("A", "A", "A", "A", "A", "A");
            List <ApiDashboardConfigurationResponseModel> response = mapper.MapBOToModel(new List <BODashboardConfiguration>()
            {
                { bo }
            });

            response.Count.Should().Be(1);
        }
Exemplo n.º 2
0
        public void MapModelToBO()
        {
            var mapper = new BOLDashboardConfigurationMapper();
            ApiDashboardConfigurationRequestModel model = new ApiDashboardConfigurationRequestModel();

            model.SetProperties("A", "A", "A", "A", "A");
            BODashboardConfiguration response = mapper.MapModelToBO("A", model);

            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");
        }
Exemplo n.º 3
0
        public void MapBOToModel()
        {
            var mapper = new BOLDashboardConfigurationMapper();
            BODashboardConfiguration bo = new BODashboardConfiguration();

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