public void MapEFToBOList()
        {
            var            mapper = new DALTenantVariableMapper();
            TenantVariable entity = new TenantVariable();

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

            List <BOTenantVariable> response = mapper.MapEFToBO(new List <TenantVariable>()
            {
                entity
            });

            response.Count.Should().Be(1);
        }
Esempio n. 2
0
        public virtual TenantVariable MapBOToEF(
            BOTenantVariable bo)
        {
            TenantVariable efTenantVariable = new TenantVariable();

            efTenantVariable.SetProperties(
                bo.EnvironmentId,
                bo.Id,
                bo.JSON,
                bo.OwnerId,
                bo.RelatedDocumentId,
                bo.TenantId,
                bo.VariableTemplateId);
            return(efTenantVariable);
        }
        public void MapEFToBO()
        {
            var            mapper = new DALTenantVariableMapper();
            TenantVariable entity = new TenantVariable();

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

            BOTenantVariable response = mapper.MapEFToBO(entity);

            response.EnvironmentId.Should().Be("A");
            response.Id.Should().Be("A");
            response.JSON.Should().Be("A");
            response.OwnerId.Should().Be("A");
            response.RelatedDocumentId.Should().Be("A");
            response.TenantId.Should().Be("A");
            response.VariableTemplateId.Should().Be("A");
        }