public AddMediaCommand(string name, string imageUrl, PoliticalOrientation politicalOrientation, IReadOnlyCollection <string> feeds) { Name = name; ImageUrl = imageUrl; PoliticalOrientation = politicalOrientation; Feeds = feeds; }
public EditMediaCommand(Guid mediaId, string name, string imageUrl, PoliticalOrientation politicalOrientation, IReadOnlyCollection <string> feeds) { MediaId = mediaId; Name = name; ImageUrl = imageUrl; PoliticalOrientation = politicalOrientation; Feeds = feeds; }
public void Edit(string name, string imageUrl, PoliticalOrientation politicalOrientation) { ApplyChange(new MediaEdited(Id, name, imageUrl, politicalOrientation)); }
public Media(string name, string imageUrl, PoliticalOrientation politicalOrientation) { ApplyChange(new MediaAdded(Guid.NewGuid(), name, imageUrl, politicalOrientation)); }
public MediaAdded(Guid id, string name, string imageUrl, PoliticalOrientation politicalOrientation) : base(id) { Name = name; ImageUrl = imageUrl; PoliticalOrientation = politicalOrientation; }