Example #1
0
        public void MapEFToBOList()
        {
            var     mapper = new DALAccountMapper();
            Account entity = new Account();

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

            List <BOAccount> response = mapper.MapEFToBO(new List <Account>()
            {
                entity
            });

            response.Count.Should().Be(1);
        }
Example #2
0
        public void MapEFToBO()
        {
            var     mapper = new DALAccountMapper();
            Account entity = new Account();

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

            BOAccount response = mapper.MapEFToBO(entity);

            response.AccountType.Should().Be("A");
            response.EnvironmentIds.Should().Be("A");
            response.Id.Should().Be("A");
            response.JSON.Should().Be("A");
            response.Name.Should().Be("A");
            response.TenantIds.Should().Be("A");
            response.TenantTags.Should().Be("A");
        }