public Album(string title, decimal price, IPerformer performername, string genre, int year) : base(title,price) { this.Performer = performername; this.Genre = genre; this.Year = year; }
public Album(string title, decimal price, IPerformer performer, string genre, int year) : base(title, price) { this.Performer = performer; this.songs = new List<ISong>(); this.Genre = genre; this.Year = year; }
public Song(string title, decimal price, IPerformer performer, string genre, int year) { this.Title = title; this.Price = price; this.Performer = performer; this.Genre = genre; this.Year = year; }
public Album(string title, decimal price, IPerformer performer, string genre, int year) { this.Title = title; this.Price = price; this.Performer = performer; this.Genre = genre; this.Year = year; this.Songs = new List<ISong>(); }
public Song(string title, decimal price, IPerformer performer, string genre, int year, string duration) : base(title, price) { this.Performer = performer; this.Genre = genre; this.Year = year; this.Duration = duration; this.Ratings = new List<int>(); }
public Song(string title, decimal price, IPerformer performer, string genre, int year, string duration) : base(title, price) { this.Title = title; this.Price = price; this.Performer = performer; this.Genre = genre; this.Year = year; this.Duration = duration; }
/// <summary> /// Performs this operation, as the given actor. /// </summary> /// <param name="actor">The actor performing this task.</param> protected abstract void PerformAs(IPerformer actor);
public OrderService() { _taskDb = new TaskDb(); _performerDb = new PerformerDb(); _modelMapper = new CommonMapper(); }
public Data(IPerformer performer, GoldBarController goldBarController, Vector2 initialPosition) { Performer = performer; GoldBarController = goldBarController; InitialPosition = initialPosition; }
public void AddPerformer(IPerformer performer) => this.performers.Add(performer);
public IPerformer GetPerformer(string name) { IPerformer performer = this.performers.FirstOrDefault(p => p.Name == name); return(performer); }
private void InsertSong(ISong song, IPerformer performer) { this.media.Add(song); this.mediaSupplies.Add(song, new SalesInfo()); performer.Songs.Add(song); this.Printer.PrintLine("Song {0} by {1} added successfully", song.Title, performer.Name); }
public IPerformer GetPerformer(string name) { IPerformer currentPerformer = this.performers.Where(p => p.Name == name).FirstOrDefault(); return(currentPerformer); }
private void InsertAlbum(Album album, IPerformer performer) { this.media.Add(album); this.mediaSupplies.Add(album, new SalesInfo()); this.Printer.PrintLine("Album {0} by {1} added successfully", album.Title, performer.Name); }
protected override void PerformAs(IPerformer actor) { var ability = actor.GetAbility <SearchTheNews>(); ability.SearchNews(_query); }
/// <summary> /// Performs this operation, as the given actor. /// </summary> /// <param name="actor">The actor performing this task.</param> protected override void PerformAs(IPerformer actor) { var ability = actor.GetAbility <UseAStopwatch>(); ability.Watch.Stop(); }
protected override void PerformAs(IPerformer actor) { actor.Perform(TheText.Of(HeaderLoginLogoutWidget.OnAnyPage.CurrentLoginUsername)) .Should() .Be(expectedUsername, because: $"{actor.Name} should see that their username is '{expectedUsername}'."); }
protected override void PerformAs(IPerformer actor) { actor.Perform(Invoke.TheJsonWebService <LoadDataPackageService>().WithTheData(GetTheDataPackage()).AndVerifyItSucceeds()); }
public IPerformer GetPerformer(string name) { IPerformer performer = performers.First(p => p.Name == name); return(performer); }
public void AddPerformer(IPerformer performer) { performers.Add(performer); }
public RateableSong(string title, decimal price, IPerformer performer, string genre, int year, string duration) : base(title, price, performer, genre, year) { }
protected override void PerformAs(IPerformer actor) { var ability = actor.GetAbility <AddNumbers>(); ability.Add(number); }
protected void InsertPerformer(IPerformer performer) { this.performers.Add(performer); this.Printer.PrintLine("{0} {1} added successfully", performer.Type.ToString(), performer.Name); }
protected override int PerformAs(IPerformer actor) { var ability = actor.GetAbility <AddNumbers>(); return(ability.GetTotal()); }
private void InsertAlbum(IAlbum album, IPerformer performer) { this.media.Add(album); this.mediaSupplies.Add(album, new SalesInfo()); this.Printer.PrintLine("Album {0} by {1} added successfully", album.Title, performer.Name); }
protected override void PerformAs(IPerformer actor) { overrider.OverrideLogin(username); }