Пример #1
0
        public void MapBOToModelList()
        {
            var            mapper = new BOLSubscriptionMapper();
            BOSubscription bo     = new BOSubscription();

            bo.SetProperties("A", true, "A", "A", "A");
            List <ApiSubscriptionResponseModel> response = mapper.MapBOToModel(new List <BOSubscription>()
            {
                { bo }
            });

            response.Count.Should().Be(1);
        }
Пример #2
0
        public void MapBOToModel()
        {
            var            mapper = new BOLSubscriptionMapper();
            BOSubscription bo     = new BOSubscription();

            bo.SetProperties("A", true, "A", "A", "A");
            ApiSubscriptionResponseModel response = mapper.MapBOToModel(bo);

            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");
        }