Created
May 25, 2012 19:00
-
-
Save cbcwebdev/2789879 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Calendar : Story | |
{ | |
private string _region; | |
private readonly ISet<Event> _events; | |
public Calendar(Guid id, string region) | |
{ | |
Id = id; | |
_region = region; | |
_events = new HashSet<Event>(); | |
} | |
public Event Schedule(User contributor, EventDetail detail) | |
{ | |
var @event = EventFactory.Create(this, contributor, detail); | |
_events.Add(@event); | |
return @event; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment