예제 #1
0
        public static Website Create(WebsiteType type, WebsiteService service, string address, string url)
        {
            if (string.IsNullOrEmpty(address))
            {
                throw new ArgumentException("Address must be populated");
            }

            return(new Website()
            {
                Service = service.ToFriendlyString(),
                Type = type.ToFriendlyString(),
                Address = address,
                Url = url
            });
        }