public void TestJsonEventTransformation() { var json = File.ReadAllText(PathUtilities.GetAdjacentFile("SampleEventData.json")); IEnumerable <MeetupEvent> meetupEvents = Meetup.ParseEvent(json); Approvals.VerifyAll(meetupEvents, "event"); }
public HomePageModule() { Get["/"] = _ => View["HomePage"]; Get["/calendar"] = _ => View["calendar"]; Get["/members"] = _ => View["members"]; Get["/community"] = _ => View["community"]; Get["/job-buzz"] = _ => View["job-buzz"]; Get["/sponsors"] = _ => View["sponsors"]; Get["/library"] = _ => View["library"]; Get["/Events"] = _ => { var e = Meetup.ParseEvent(); return(Response.AsJson(e)); }; }