Exemplo n.º 1
0
 public EntryApiController(EntryQueries queries, OtherService otherService, AlbumService albumService, ArtistService artistService, SongQueries songQueries, IEntryUrlParser entryUrlParser)
 {
     this.queries        = queries;
     this.otherService   = otherService;
     this.albumService   = albumService;
     this.artistService  = artistService;
     this.songQueries    = songQueries;
     this.entryUrlParser = entryUrlParser;
 }
Exemplo n.º 2
0
 public SearchController(OtherService services, ArtistService artistService, AlbumService albumService, SongService songService, SongListQueries songListQueries,
                         TagQueries tagQueries, EventQueries eventQueries, EntryQueries entryQueries, IUserPermissionContext permissionContext)
 {
     _services          = services;
     _artistService     = artistService;
     _albumService      = albumService;
     _songService       = songService;
     _songListQueries   = songListQueries;
     _tagQueries        = tagQueries;
     _eventQueries      = eventQueries;
     _entryQueries      = entryQueries;
     _permissionContext = permissionContext;
 }
Exemplo n.º 3
0
 public SearchController(OtherService services, ArtistService artistService, AlbumService albumService, SongService songService, SongListQueries songListQueries,
                         TagQueries tagQueries, EventQueries eventQueries, EntryQueries entryQueries, IUserPermissionContext permissionContext)
 {
     this.services          = services;
     this.artistService     = artistService;
     this.albumService      = albumService;
     this.songService       = songService;
     this.songListQueries   = songListQueries;
     this.tagQueries        = tagQueries;
     this.eventQueries      = eventQueries;
     this.entryQueries      = entryQueries;
     this.permissionContext = permissionContext;
 }
Exemplo n.º 4
0
 public EntryApiController(
     EntryQueries queries,
     OtherService otherService,
     AlbumService albumService,
     ArtistService artistService,
     SongQueries songQueries,
     IEntryUrlParser entryUrlParser,
     IViewRenderService viewRenderService)
 {
     _queries           = queries;
     _otherService      = otherService;
     _albumService      = albumService;
     _artistService     = artistService;
     _songQueries       = songQueries;
     _entryUrlParser    = entryUrlParser;
     _viewRenderService = viewRenderService;
 }
Exemplo n.º 5
0
 public QueryService(ArtistQueries artistQueries, TagQueries tagQueries, UserQueries userQueries,
                     AlbumService albumService, ArtistService artistService, SongQueries songQueries, SongService songService, SongListQueries songListQueries, UserService userService,
                     OtherService otherService, EntryQueries entryQueries,
                     IUserPermissionContext userPermissionContext)
 {
     this.artistQueries         = artistQueries;
     this.tagQueries            = tagQueries;
     this.userQueries           = userQueries;
     this.albumService          = albumService;
     this.artistService         = artistService;
     this.songQueries           = songQueries;
     this.entryQueries          = entryQueries;
     this.songService           = songService;
     this.songListQueries       = songListQueries;
     this.userService           = userService;
     this.otherService          = otherService;
     this.userPermissionContext = userPermissionContext;
 }
Exemplo n.º 6
0
        public void SetUp()
        {
            repository = new FakeAlbumRepository();
            var permissionContext = new FakePermissionContext();
            var thumbPersister    = new InMemoryImagePersister();

            queries = new EntryQueries(repository, permissionContext, thumbPersister);

            var group  = CreateEntry.Artist(ArtistType.OtherGroup, name: "1640mP");
            var artist = CreateEntry.Producer(name: "40mP");
            var tag    = new Tag("pop_rock");

            artist.Tags.Usages.Add(new ArtistTagUsage(artist, tag));
            var artist2 = CreateEntry.Producer(name: "Tripshots");
            var album   = CreateEntry.Album(name: "40mP Piano Arrange Album");
            var song    = CreateEntry.Song(name: "Mosaik Role [40mP ver.]");

            repository.Save(group, artist, artist2);
            repository.Save(album);
            repository.Save(song);
            repository.Save(tag);
        }
Exemplo n.º 7
0
		public void SetUp() {
			
			repository = new FakeAlbumRepository();
			var permissionContext = new FakePermissionContext();
			var thumbPersister = new InMemoryImagePersister();

			queries = new EntryQueries(repository, permissionContext, thumbPersister);

			var group = CreateEntry.Artist(ArtistType.OtherGroup, name: "1640mP");
			var artist = CreateEntry.Producer(name: "40mP");
			var tag = new Tag("pop_rock");
			artist.Tags.Usages.Add(new ArtistTagUsage(artist, tag));
			var artist2 = CreateEntry.Producer(name: "Tripshots");
			var album = CreateEntry.Album(name: "40mP Piano Arrange Album");
			var song = CreateEntry.Song(name: "Mosaik Role [40mP ver.]");

			repository.Save(group, artist, artist2);
			repository.Save(album);
			repository.Save(song);
			repository.Save(tag);

		}
Exemplo n.º 8
0
 public EntryApiController(EntryQueries queries)
 {
     this.queries = queries;
 }
Exemplo n.º 9
0
 public EntryApiController(EntryQueries queries)
 {
     this.queries = queries;
 }
Exemplo n.º 10
0
 public EntryApiController(EntryQueries queries, OtherService otherService)
 {
     this.queries      = queries;
     this.otherService = otherService;
 }