Пример #1
0
 public Album(string title, decimal price, IPerformer performername, string genre, int year)
     : base(title,price)
 {
     this.Performer = performername;
     this.Genre = genre;
     this.Year = year;
 }
Пример #2
0
 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;
 }
Пример #3
0
 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>();
 }
Пример #6
0
 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;
 }
Пример #7
0
 /// <summary>
 /// Performs this operation, as the given actor.
 /// </summary>
 /// <param name="actor">The actor performing this task.</param>
 protected abstract void PerformAs(IPerformer actor);
Пример #8
0
 public OrderService()
 {
     _taskDb = new TaskDb();
     _performerDb = new PerformerDb();
     _modelMapper = new CommonMapper();
 }
Пример #9
0
 public Data(IPerformer performer, GoldBarController goldBarController, Vector2 initialPosition)
 {
     Performer         = performer;
     GoldBarController = goldBarController;
     InitialPosition   = initialPosition;
 }
Пример #10
0
 public void AddPerformer(IPerformer performer) => this.performers.Add(performer);
Пример #11
0
        public IPerformer GetPerformer(string name)
        {
            IPerformer performer = this.performers.FirstOrDefault(p => p.Name == name);

            return(performer);
        }
Пример #12
0
 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);
 }
Пример #13
0
        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);
 }
Пример #15
0
        protected override void PerformAs(IPerformer actor)
        {
            var ability = actor.GetAbility <SearchTheNews>();

            ability.SearchNews(_query);
        }
Пример #16
0
        /// <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();
        }
Пример #17
0
 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}'.");
 }
Пример #18
0
 protected override void PerformAs(IPerformer actor)
 {
     actor.Perform(Invoke.TheJsonWebService <LoadDataPackageService>().WithTheData(GetTheDataPackage()).AndVerifyItSucceeds());
 }
Пример #19
0
        public IPerformer GetPerformer(string name)
        {
            IPerformer performer = performers.First(p => p.Name == name);

            return(performer);
        }
Пример #20
0
 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)
 {
 }
Пример #22
0
        protected override void PerformAs(IPerformer actor)
        {
            var ability = actor.GetAbility <AddNumbers>();

            ability.Add(number);
        }
Пример #23
0
 protected void InsertPerformer(IPerformer performer)
 {
     this.performers.Add(performer);
     this.Printer.PrintLine("{0} {1} added successfully", performer.Type.ToString(), performer.Name);
 }
Пример #24
0
        protected override int PerformAs(IPerformer actor)
        {
            var ability = actor.GetAbility <AddNumbers>();

            return(ability.GetTotal());
        }
Пример #25
0
 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);
 }
Пример #26
0
 protected override void PerformAs(IPerformer actor)
 {
     overrider.OverrideLogin(username);
 }