Ejemplo n.º 1
0
        public void MapBOToModelList()
        {
            var       mapper = new BOLProjectMapper();
            BOProject bo     = new BOProject();

            bo.SetProperties("A", true, BitConverter.GetBytes(1), "A", true, "A", true, "A", "A", "A", "A", "A", "A");
            List <ApiProjectResponseModel> response = mapper.MapBOToModel(new List <BOProject>()
            {
                { bo }
            });

            response.Count.Should().Be(1);
        }
Ejemplo n.º 2
0
        public void MapBOToModel()
        {
            var       mapper = new BOLProjectMapper();
            BOProject bo     = new BOProject();

            bo.SetProperties("A", true, BitConverter.GetBytes(1), "A", true, "A", true, "A", "A", "A", "A", "A", "A");
            ApiProjectResponseModel response = mapper.MapBOToModel(bo);

            response.AutoCreateRelease.Should().Be(true);
            response.DataVersion.Should().BeEquivalentTo(BitConverter.GetBytes(1));
            response.DeploymentProcessId.Should().Be("A");
            response.DiscreteChannelRelease.Should().Be(true);
            response.Id.Should().Be("A");
            response.IncludedLibraryVariableSetIds.Should().Be("A");
            response.IsDisabled.Should().Be(true);
            response.JSON.Should().Be("A");
            response.LifecycleId.Should().Be("A");
            response.Name.Should().Be("A");
            response.ProjectGroupId.Should().Be("A");
            response.Slug.Should().Be("A");
            response.VariableSetId.Should().Be("A");
        }