Esempio n. 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;
 }
Esempio n. 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;
 }
 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>();
 }
Esempio n. 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;
 }
Esempio n. 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);
 public OrderService()
 {
     _taskDb = new TaskDb();
     _performerDb = new PerformerDb();
     _modelMapper = new CommonMapper();
 }
Esempio n. 9
0
 public Data(IPerformer performer, GoldBarController goldBarController, Vector2 initialPosition)
 {
     Performer         = performer;
     GoldBarController = goldBarController;
     InitialPosition   = initialPosition;
 }
 public void AddPerformer(IPerformer performer) => this.performers.Add(performer);
Esempio n. 11
0
        public IPerformer GetPerformer(string name)
        {
            IPerformer performer = this.performers.FirstOrDefault(p => p.Name == name);

            return(performer);
        }
Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 15
0
        protected override void PerformAs(IPerformer actor)
        {
            var ability = actor.GetAbility <SearchTheNews>();

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

            return(performer);
        }
Esempio n. 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)
 {
 }
Esempio n. 22
0
        protected override void PerformAs(IPerformer actor)
        {
            var ability = actor.GetAbility <AddNumbers>();

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

            return(ability.GetTotal());
        }
Esempio n. 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);
 }
Esempio n. 26
0
 protected override void PerformAs(IPerformer actor)
 {
     overrider.OverrideLogin(username);
 }