private static IEnumerable<Speaker> GetAllSpeakers(SpeakerService speakerService) { return new List<Speaker>() { {new Speaker(speakerService) {Id = 1, Name = "Bayer White", SpeakerImage = string.Format("/Content/{0}.jpg", 1), Company = "Flow OnFocus", CompanyWebSite = new Uri("http://www.flowfocus.com"), LastSpeakingDate = new DateTime(2011, 08, 03, 18,30,0, DateTimeKind.Local), LastSpeakingVenue = new JaxDugVenue(), SpeakerRating = 5}}, {new Speaker(speakerService) {Id = 2, Name = "Michael Mann", Company= "DME Automotive", LastSpeakingDate = new DateTime(2011, 07, 06, 18, 30, 0, DateTimeKind.Local ), SpeakerRating = 3}} }; }
public SpeakerController(SpeakerService speakerService) { _speakerService = speakerService; }
public Speaker(SpeakerService service) { _service = service; }