public CountryService(IMusicLibraryContext musicLibraryContext) { if (musicLibraryContext == null) { throw new ArgumentNullException(nameof(musicLibraryContext)); } this.musicLibraryContext = musicLibraryContext; }
public GenreService(IMusicLibraryContext musicLibraryContext, IMusicLibraryBaseContext baseContext, IGenreFactory genreFactory) { if (genreFactory == null) { throw new ArgumentNullException(nameof(genreFactory)); } if (baseContext == null) { throw new ArgumentNullException(nameof(baseContext)); } this.musicLibraryContext = musicLibraryContext; this.baseContext = baseContext; this.genreFactory = genreFactory; }
public BandService( IMusicLibraryContext libraryContext, IMusicLibraryBaseContext baseContext, ICountryService countryService, IGenreService genreService, IUserService userService, IBandFactory bandFactory) { this.bandFactory = bandFactory; if (bandFactory == null) { throw new ArgumentNullException(nameof(bandFactory)); } if (userService == null) { throw new ArgumentNullException(nameof(userService)); } if (genreService == null) { throw new ArgumentNullException(nameof(genreService)); } if (countryService == null) { throw new ArgumentNullException(nameof(countryService)); } if (baseContext == null) { throw new ArgumentNullException(nameof(baseContext)); } if (libraryContext == null) { throw new ArgumentNullException(nameof(libraryContext)); } this.libraryContext = libraryContext; this.baseContext = baseContext; this.userService = userService; this.genreService = genreService; this.countryService = countryService; }
public UserService(IMusicLibraryContext musicLibraryContext) { this.musicLibraryContext = musicLibraryContext; }