public void MapEFToBOList()
        {
            var mapper = new DALDeploymentProcessMapper();
            DeploymentProcess entity = new DeploymentProcess();

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

            List <BODeploymentProcess> response = mapper.MapEFToBO(new List <DeploymentProcess>()
            {
                entity
            });

            response.Count.Should().Be(1);
        }
Exemplo n.º 2
0
        public virtual DeploymentProcess MapBOToEF(
            BODeploymentProcess bo)
        {
            DeploymentProcess efDeploymentProcess = new DeploymentProcess();

            efDeploymentProcess.SetProperties(
                bo.Id,
                bo.IsFrozen,
                bo.JSON,
                bo.OwnerId,
                bo.RelatedDocumentIds,
                bo.Version);
            return(efDeploymentProcess);
        }
        public void MapEFToBO()
        {
            var mapper = new DALDeploymentProcessMapper();
            DeploymentProcess entity = new DeploymentProcess();

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

            BODeploymentProcess response = mapper.MapEFToBO(entity);

            response.Id.Should().Be("A");
            response.IsFrozen.Should().Be(true);
            response.JSON.Should().Be("A");
            response.OwnerId.Should().Be("A");
            response.RelatedDocumentIds.Should().Be("A");
            response.Version.Should().Be(1);
        }