Exemplo n.º 1
0
        public void Should_Convert_To_List_Of_Dto2()
        {
            var colors = new Domain.Entities.Color[] { };
            var dtos   = ColorMapper.Map(colors).ToList();

            Assert.Empty(dtos);
            Assert.NotNull(dtos);
        }
Exemplo n.º 2
0
        public void Should_Convert_To_List_Of_Dto()
        {
            var colors = new Domain.Entities.Color[]
            {
                Domain.Entities.Color.New("test 1", StatusEnum.Enable, TenantId.New()),
                Domain.Entities.Color.New("test 2", StatusEnum.Enable, TenantId.New())
            };
            var dtos = ColorMapper.Map(colors).ToList();

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