Beispiel #1
0
        public SongService(IEfContextWrapper <Song> songsRepo, ISaveContext context)
        {
            Guard.WhenArgument(songsRepo, "songRepo").IsNull().Throw();
            Guard.WhenArgument(context, "context").IsNull().Throw();

            this.songsRepo = songsRepo;
            this.context   = context;
        }
Beispiel #2
0
        public AlbumService(IEfContextWrapper <Album> albumsRepo, ISaveContext context)
        {
            Guard.WhenArgument(albumsRepo, "albumsRepo").IsNull().Throw();
            Guard.WhenArgument(context, "context").IsNull().Throw();

            this.albumsRepo = albumsRepo;
            this.context    = context;
        }
Beispiel #3
0
        public GenreService(IEfContextWrapper <Genre> genresRepo, ISaveContext context)
        {
            Guard.WhenArgument(genresRepo, "genresRepo").IsNull().Throw();
            Guard.WhenArgument(context, "context").IsNull().Throw();

            this.genresRepo = genresRepo;
            this.context    = context;
        }
Beispiel #4
0
        public ArtistService(IEfContextWrapper <Artist> artistsRepo, ISaveContext context)
        {
            Guard.WhenArgument(artistsRepo, "artistsRepo").IsNull().Throw();
            Guard.WhenArgument(context, "context").IsNull().Throw();

            this.artistsRepo = artistsRepo;
            this.context     = context;
        }
Beispiel #5
0
        public UserService(IEfContextWrapper <User> usersRepo, ISaveContext context)
        {
            Guard.WhenArgument(usersRepo, "usersRepo").IsNull().Throw();
            Guard.WhenArgument(context, "context").IsNull().Throw();

            this.usersRepo = usersRepo;
            this.context   = context;
        }
        public SongModifyService(
            IEfContextWrapper <Song> songsRepo,
            IEfContextWrapper <Artist> artistsRepo,
            IEfContextWrapper <Album> albumsRepo,
            IEfContextWrapper <Genre> genresRepo,
            ISaveContext context)
        {
            Guard.WhenArgument(songsRepo, "songRepo").IsNull().Throw();
            Guard.WhenArgument(artistsRepo, "artistsRepo").IsNull().Throw();
            Guard.WhenArgument(albumsRepo, "albumsRepo").IsNull().Throw();
            Guard.WhenArgument(genresRepo, "genresRepo").IsNull().Throw();
            Guard.WhenArgument(context, "context").IsNull().Throw();

            this.songsRepo   = songsRepo;
            this.artistsRepo = artistsRepo;
            this.albumsRepo  = albumsRepo;
            this.genresRepo  = genresRepo;
            this.context     = context;
        }