public void should_convert_to_full_domain_entity()
        {
            var id = Guid.NewGuid();
            var name = "test";
            var dto = new SiteConfigDTO {id = id, name = name};

            var config = new SiteConfiguration();
            dto.ToSiteConfiguration(config);

            config.ID.ShouldEqual(id);
            config.Name.ShouldEqual(name);
        }
        public void should_convert_sub_aliases()
        {
            var host1 = "host1";
            var host2 = "host2";
            var dto = new SiteConfigDTO {aliases = new[] {new AliasDTO {host = host1}, new AliasDTO {host = host2}}};

            var config = new SiteConfiguration();
            dto.ToSiteConfiguration(config);
            var aliases = config.GetAliases();

            aliases.First().Host.ShouldEqual(host1);
            aliases.Skip(1).Single().Host.ShouldEqual(host2);
        }