Exemple #1
0
        public void MapEFToBOList()
        {
            var     mapper = new DALChannelMapper();
            Channel entity = new Channel();

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

            List <BOChannel> response = mapper.MapEFToBO(new List <Channel>()
            {
                entity
            });

            response.Count.Should().Be(1);
        }
Exemple #2
0
        public void MapEFToBO()
        {
            var     mapper = new DALChannelMapper();
            Channel entity = new Channel();

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

            BOChannel response = mapper.MapEFToBO(entity);

            response.DataVersion.Should().BeEquivalentTo(BitConverter.GetBytes(1));
            response.Id.Should().Be("A");
            response.JSON.Should().Be("A");
            response.LifecycleId.Should().Be("A");
            response.Name.Should().Be("A");
            response.ProjectId.Should().Be("A");
            response.TenantTags.Should().Be("A");
        }