Esempio n. 1
0
        public void MapEFToBOList()
        {
            var        mapper = new DALDeploymentMapper();
            Deployment entity = new Deployment();

            entity.SetProperties("A", DateTimeOffset.Parse("1/1/1987 12:00:00 AM"), "A", "A", "A", "A", "A", "A", "A", "A", "A", "A", "A");

            List <BODeployment> response = mapper.MapEFToBO(new List <Deployment>()
            {
                entity
            });

            response.Count.Should().Be(1);
        }
Esempio n. 2
0
        public void MapEFToBO()
        {
            var        mapper = new DALDeploymentMapper();
            Deployment entity = new Deployment();

            entity.SetProperties("A", DateTimeOffset.Parse("1/1/1987 12:00:00 AM"), "A", "A", "A", "A", "A", "A", "A", "A", "A", "A", "A");

            BODeployment response = mapper.MapEFToBO(entity);

            response.ChannelId.Should().Be("A");
            response.Created.Should().Be(DateTimeOffset.Parse("1/1/1987 12:00:00 AM"));
            response.DeployedBy.Should().Be("A");
            response.DeployedToMachineIds.Should().Be("A");
            response.EnvironmentId.Should().Be("A");
            response.Id.Should().Be("A");
            response.JSON.Should().Be("A");
            response.Name.Should().Be("A");
            response.ProjectGroupId.Should().Be("A");
            response.ProjectId.Should().Be("A");
            response.ReleaseId.Should().Be("A");
            response.TaskId.Should().Be("A");
            response.TenantId.Should().Be("A");
        }