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

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

            List <BOSubscription> response = mapper.MapEFToBO(new List <Subscription>()
            {
                entity
            });

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

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

            BOSubscription response = mapper.MapEFToBO(entity);

            response.Id.Should().Be("A");
            response.IsDisabled.Should().Be(true);
            response.JSON.Should().Be("A");
            response.Name.Should().Be("A");
            response.Type.Should().Be("A");
        }