Ejemplo n.º 1
0
        public static ConferenceInfo BuildConferenceInfo(Table conference)
        {
            string conferenceSlug = Slug.CreateNew().Value;

            return(new ConferenceInfo
            {
                Description = conference.Rows[0]["Description"],
                Name = conferenceSlug,
                Slug = conferenceSlug,
                Location = Constants.UI.Location,
                Tagline = Constants.UI.TagLine,
                TwitterSearch = Constants.UI.TwitterSearch,
                StartDate = DateTime.Parse(conference.Rows[0]["Start"]),
                EndDate = DateTime.Parse(conference.Rows[0]["End"]),
                OwnerName = conference.Rows[0]["Name"],
                OwnerEmail = conference.Rows[0]["Email"],
                IsPublished = false,
                WasEverPublished = false
            });
        }
Ejemplo n.º 2
0
        private static ConferenceInfo BuildInternalConferenceInfo(Table seats)
        {
            string conferenceSlug = Slug.CreateNew().Value;
            var    conference     = new ConferenceInfo()
            {
                Description      = Constants.UI.ConferenceDescription + " (" + conferenceSlug + ")",
                Name             = conferenceSlug,
                Slug             = conferenceSlug,
                Location         = Constants.UI.Location,
                Tagline          = Constants.UI.TagLine,
                TwitterSearch    = Constants.UI.TwitterSearch,
                StartDate        = DateTime.Now,
                EndDate          = DateTime.Now.AddDays(1),
                OwnerName        = "test",
                OwnerEmail       = "*****@*****.**",
                IsPublished      = true,
                WasEverPublished = true
            };

            return(conference);
        }