Пример #1
0
        public void Should_Convert_To_List_Of_Dto2()
        {
            var measures = new Domain.Entities.Measure[] { };
            var dtos     = MeasureMapper.Map(measures).ToList();

            Assert.Empty(dtos);
            Assert.NotNull(dtos);
        }
Пример #2
0
        public void Should_Convert_To_List_Of_Dto()
        {
            var measures = new Domain.Entities.Measure[]
            {
                Domain.Entities.Measure.New("test 1", StatusEnum.Enable, TenantId.New()),
                Domain.Entities.Measure.New("test 2", StatusEnum.Enable, TenantId.New())
            };
            var dtos = MeasureMapper.Map(measures).ToList();

            Assert.NotEmpty(dtos);
            Assert.NotNull(dtos);
        }