Пример #1
0
        public void MapEFToBOList()
        {
            var     mapper = new DALProjectMapper();
            Project entity = new Project();

            entity.SetProperties(true, BitConverter.GetBytes(1), "A", true, "A", "A", true, "A", "A", "A", "A", "A", "A");

            List <BOProject> response = mapper.MapEFToBO(new List <Project>()
            {
                entity
            });

            response.Count.Should().Be(1);
        }
Пример #2
0
        public void MapEFToBO()
        {
            var     mapper = new DALProjectMapper();
            Project entity = new Project();

            entity.SetProperties(true, BitConverter.GetBytes(1), "A", true, "A", "A", true, "A", "A", "A", "A", "A", "A");

            BOProject response = mapper.MapEFToBO(entity);

            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");
        }