public void Init()
        {
            _interpret1Id = 1;
            _interpret1   = new InterpretDTO
            {
                Name     = "No name",
                Language = Language.Slovak,
                ID       = _interpret1Id
            };

            _event1Id = 1;
            _event1   = new EventDTO
            {
                Name        = "Deň matiek v Púchove",
                Place       = "Púchov Kultúrny dom",
                Time        = new DateTime(2017, 5, 14),
                InterpretId = _interpret1Id,
                ID          = _event1Id
            };

            _event2Id = 2;
            _event2   = new EventDTO
            {
                Name        = "Vianočné trhy 2016",
                Place       = "Terchová Amfiteáter",
                Time        = new DateTime(2016, 12, 25),
                InterpretId = _interpret1Id,
                ID          = _event2Id
            };

            _interpretService.CreateInterpret(_interpret1);

            _eventService.CreateEvent(_event1, _interpret1Id);
            _eventService.CreateEvent(_event2, _interpret1Id);
        }
        public void Init()
        {
            _interpret1Id = 1;
            _interpret1   = new InterpretDTO
            {
                ID       = _interpret1Id,
                Name     = "System of a down",
                Language = Language.English,
                IsPublic = false
            };

            _interpret2Id = 2;
            _interpret2   = new InterpretDTO
            {
                ID       = _interpret2Id,
                Name     = "Linkin Park",
                Language = Language.English,
                IsPublic = false
            };
            _interpretService.CreateInterpret(_interpret1);
            _interpretService.CreateInterpret(_interpret2);


            _album1Id = 1;
            _album1   = new AlbumDTO
            {
                ID          = _album1Id,
                InterpretId = _interpret1Id,
                Name        = "Toxicity",
                Year        = 2001
            };

            _album2Id = 2;
            _album2   = new AlbumDTO
            {
                ID          = _album2Id,
                InterpretId = _interpret2Id,
                Name        = "Meteora",
                Year        = 2003
            };

            _albumService.CreateAlbum(_album1, _interpret1Id);
            _albumService.CreateAlbum(_album2, _interpret2Id);
        }
        public void Init()
        {
            _interpret1 = new InterpretDTO
            {
                Name     = "System of a down",
                Language = Language.English,
                ID       = 1,
                IsPublic = false
            };

            _interpret2 = new InterpretDTO
            {
                Name     = "Linkin Park",
                Language = Language.English,
                ID       = 2,
                IsPublic = false
            };

            _interpretService.CreateInterpret(_interpret1);
            _interpretService.CreateInterpret(_interpret2);

            _album1Id = 1;
            _album1   = new AlbumDTO
            {
                ID          = _album1Id,
                InterpretId = 1,
                Name        = "Toxicity",
                Year        = 2001
            };

            _album2Id = 2;
            _album2   = new AlbumDTO
            {
                ID          = _album2Id,
                InterpretId = 2,
                Name        = "Meteora",
                Year        = 2003
            };
            _albumService.CreateAlbum(_album1, _interpret1.ID);
            _albumService.CreateAlbum(_album2, _interpret2.ID);

            _song1Id = 1;
            _song1   = new SongDTO
            {
                ID       = _song1Id,
                Name     = "Prison Song",
                Added    = new DateTime(2016, 11, 6),
                AlbumId  = _album1Id,
                Genre    = Genre.Rock,
                IsPublic = false
            };

            _song2Id = 2;
            _song2   = new SongDTO
            {
                ID       = _song2Id,
                Name     = "Deer Dance",
                Added    = new DateTime(2016, 11, 6),
                AlbumId  = _album1Id,
                Genre    = Genre.Rock,
                IsPublic = false
            };

            _song3Id = 3;
            _song3   = new SongDTO
            {
                ID       = _song3Id,
                Name     = "Numb",
                Added    = new DateTime(2016, 11, 6),
                AlbumId  = _album2Id,
                Genre    = Genre.Rock,
                IsPublic = false
            };

            _songService.CreateSong(_song1, _album1Id);
            _songService.CreateSong(_song2, _album1Id);
            _songService.CreateSong(_song3, _album2Id);
        }
Exemple #4
0
        public void Init()
        {
            _interpret1Id = 1;
            _interpret1   = new InterpretDTO
            {
                Name     = "System of a down",
                Language = Language.English,
                ID       = _interpret1Id
            };

            _interpret2Id = 2;
            _interpret2   = new InterpretDTO
            {
                Name     = "Linkin Park",
                Language = Language.English,
                ID       = _interpret2Id
            };

            _interpretService.CreateInterpret(_interpret1);
            _interpretService.CreateInterpret(_interpret2);

            _album1Id = 1;
            _album1   = new AlbumDTO
            {
                ID          = _album1Id,
                InterpretId = _interpret1Id,
                Name        = "Toxicity",
                Year        = 2003
            };

            _album2Id = 2;
            _album2   = new AlbumDTO
            {
                ID          = _album2Id,
                InterpretId = _interpret2Id,
                Name        = "Meteora",
                Year        = 2008
            };

            _albumService.CreateAlbum(_album1, _interpret1Id);
            _albumService.CreateAlbum(_album2, _interpret2Id);

            _albumReview1Id = 1;
            _albumReview1   = new AlbumReviewDTO
            {
                ID      = _albumReview1Id,
                AlbumId = _album1.ID,
                Note    = "Perfect album",
                Rating  = 9
            };

            _albumReview2Id = 2;
            _albumReview2   = new AlbumReviewDTO
            {
                AlbumId = _album2.ID,
                Note    = "Not bad",
                Rating  = 8,
                ID      = _albumReview2Id
            };

            _albumReviewService.CreateAlbumReview(_albumReview1, _album1Id);
            _albumReviewService.CreateAlbumReview(_albumReview2, _album2Id);
        }
Exemple #5
0
        public void Init()
        {
            _interpret1Id = 1;
            _interpret1   = new InterpretDTO
            {
                Name     = "System of a down",
                Language = Language.English,
                ID       = _interpret1Id
            };

            _interpret2Id = 2;
            _interpret2   = new InterpretDTO
            {
                Name     = "Linkin Park",
                Language = Language.English,
                ID       = _interpret2Id
            };

            _interpretService.CreateInterpret(_interpret1);
            _interpretService.CreateInterpret(_interpret2);

            _album1Id = 1;
            _album1   = new AlbumDTO
            {
                ID          = _album1Id,
                InterpretId = 1,
                Name        = "Toxicity",
                Year        = 2001
            };

            _album2Id = 2;
            _album2   = new AlbumDTO
            {
                ID          = _album2Id,
                InterpretId = 2,
                Name        = "Meteora",
                Year        = 2003
            };
            _albumService.CreateAlbum(_album1, _interpret1.ID);
            _albumService.CreateAlbum(_album2, _interpret2.ID);

            _song1Id = 1;
            _song1   = new SongDTO
            {
                ID      = _song1Id,
                Name    = "Prison Song",
                Added   = new DateTime(2016, 11, 6),
                AlbumId = _album1Id,
                Genre   = Genre.Rock
            };

            _song2Id = 2;
            _song2   = new SongDTO
            {
                ID      = _song2Id,
                Name    = "Deer Dance",
                Added   = new DateTime(2016, 11, 6),
                AlbumId = _album1Id,
                Genre   = Genre.Rock
            };

            _song3Id = 3;
            _song3   = new SongDTO
            {
                ID      = _song3Id,
                Name    = "Numb",
                Added   = new DateTime(2016, 11, 6),
                AlbumId = _album2Id,
                Genre   = Genre.Rock
            };

            _songService.CreateSong(_song1, _album1Id);
            _songService.CreateSong(_song2, _album1Id);
            _songService.CreateSong(_song3, _album2Id);

            _songReview1Id = 1;
            _songReview1   = new SongReviewDTO
            {
                ID     = _songReview1Id,
                SongId = _song1.ID,
                Note   = "Perfect album",
                Rating = 9
            };

            _songReview2Id = 2;
            _songReview2   = new SongReviewDTO
            {
                SongId = _song2.ID,
                Note   = "Not bad",
                Rating = 8,
                ID     = _songReview2Id
            };

            _songReviewService.CreateSongReview(_songReview1, _song1Id);
            _songReviewService.CreateSongReview(_songReview2, _song2Id);
        }
 public int CreateInterpret(InterpretDTO interpretDto)
 {
     return(_interpretService.CreateInterpret(interpretDto));
 }
Exemple #7
0
        public void Init()
        {
            _interpret1Id = 1;
            _interpret1   = new InterpretDTO
            {
                Name     = "System of a down",
                Language = Language.English,
                ID       = _interpret1Id,
                IsPublic = false
            };

            _interpret2Id = 2;
            _interpret2   = new InterpretDTO
            {
                Name     = "Linkin Park",
                Language = Language.English,
                ID       = _interpret2Id,
                IsPublic = false
            };

            _interpret3Id = 3;
            _interpret3   = new InterpretDTO
            {
                Name     = "No name",
                Language = Language.Slovak,
                ID       = _interpret3Id,
                IsPublic = false
            };

            _album1Id = 4;
            _album1   = new AlbumDTO
            {
                Name        = "Toxicity",
                Year        = 2001,
                InterpretId = _interpret1Id,
                ID          = _album1Id
            };

            _album2Id = 5;
            _album2   = new AlbumDTO
            {
                Name        = "Meteora",
                Year        = 2003,
                InterpretId = _interpret2Id,
                ID          = _album2Id
            };

            _album3Id = 6;
            _album3   = new AlbumDTO
            {
                Name        = "V rovnováhe",
                Year        = 2008,
                InterpretId = _interpret3Id,
                ID          = _album3Id
            };

            _album4Id = 7;
            _album4   = new AlbumDTO
            {
                Name        = "Čím to je?!",
                Year        = 2005,
                InterpretId = _interpret3Id,
                ID          = _album4Id
            };

            _event1Id = 8;
            _event1   = new EventDTO
            {
                Name        = "Deň matiek v Púchove",
                Place       = "Púchov Kultúrny dom",
                Time        = new DateTime(2017, 5, 14),
                InterpretId = _interpret3Id,
                ID          = _event1Id
            };

            _event2Id = 9;
            _event2   = new EventDTO
            {
                Name        = "Vianočné trhy 2016",
                Place       = "Terchová Amfiteáter",
                Time        = new DateTime(2016, 12, 25),
                InterpretId = _interpret3Id,
                ID          = _event2Id
            };

            _interpretService.CreateInterpret(_interpret1);
            _interpretService.CreateInterpret(_interpret2);
            _interpretService.CreateInterpret(_interpret3);

            _albumService.CreateAlbum(_album1, _interpret1Id);
            _albumService.CreateAlbum(_album2, _interpret2Id);
            _albumService.CreateAlbum(_album3, _interpret3Id);
            _albumService.CreateAlbum(_album4, _interpret3Id);

            _eventService.CreateEvent(_event1, _interpret3Id);
            _eventService.CreateEvent(_event2, _interpret3Id);
        }
        public void Init()
        {
            var guid = _userAccountService.CreateAccount("Martin", "Password", "*****@*****.**");

            _userService.CreateUser(guid.ID);

            _playlist1Id = 1;
            _playlist1   = new PlaylistDTO
            {
                Name    = "Favorite songs",
                Created = new DateTime(2016, 10, 10),
                ID      = _playlist1Id,
                UserId  = 1
            };

            _playlist2Id = 2;
            _playlist2   = new PlaylistDTO
            {
                Name    = "Best songs",
                Created = new DateTime(2016, 1, 1),
                ID      = _playlist2Id,
                UserId  = 1
            };

            _playlistService.CreatePlaylist(_playlist1, 1);
            _playlistService.CreatePlaylist(_playlist2, 1);

            _interpret1 = new InterpretDTO
            {
                Name     = "System of a down",
                Language = Language.English,
                ID       = 1
            };

            _interpret2 = new InterpretDTO
            {
                Name     = "Linkin Park",
                Language = Language.English,
                ID       = 2
            };

            _interpretService.CreateInterpret(_interpret1);
            _interpretService.CreateInterpret(_interpret2);

            _album1Id = 1;
            _album1   = new AlbumDTO
            {
                ID          = _album1Id,
                InterpretId = 1,
                Name        = "Toxicity",
                Year        = 2001
            };

            _album2Id = 2;
            _album2   = new AlbumDTO
            {
                ID          = _album2Id,
                InterpretId = 2,
                Name        = "Meteora",
                Year        = 2003
            };
            _albumService.CreateAlbum(_album1, _interpret1.ID);
            _albumService.CreateAlbum(_album2, _interpret2.ID);

            _song1Id = 1;
            _song1   = new SongDTO
            {
                ID      = _song1Id,
                Name    = "Prison Song",
                Added   = new DateTime(2016, 11, 6),
                AlbumId = _album1Id,
                Genre   = Genre.Rock
            };

            _song2Id = 2;
            _song2   = new SongDTO
            {
                ID      = _song2Id,
                Name    = "Deer Dance",
                Added   = new DateTime(2016, 11, 6),
                AlbumId = _album1Id,
                Genre   = Genre.Rock
            };

            _song3Id = 3;
            _song3   = new SongDTO
            {
                ID      = _song3Id,
                Name    = "Numb",
                Added   = new DateTime(2016, 11, 6),
                AlbumId = _album2Id,
                Genre   = Genre.Rock
            };

            _songService.CreateSong(_song1, _album1Id);
            _songService.CreateSong(_song2, _album1Id);
            _songService.CreateSong(_song3, _album2Id);

            _songlist1Id = 1;
            _songList1   = new SongListDTO
            {
                ID         = _songlist1Id,
                PlaylistId = _playlist1Id,
                SongId     = _song1Id
            };

            _songlist2Id = 2;
            _songList2   = new SongListDTO
            {
                ID         = _songlist2Id,
                PlaylistId = _playlist1Id,
                SongId     = _song2Id
            };

            _songlist3Id = 3;
            _songList3   = new SongListDTO
            {
                ID         = _songlist3Id,
                PlaylistId = _playlist2Id,
                SongId     = _song3Id
            };

            _songlistService.CreateSonglist(_songList1, _song1Id, _playlist1Id);
            _songlistService.CreateSonglist(_songList2, _song1Id, _playlist1Id);
            _songlistService.CreateSonglist(_songList3, _song1Id, _playlist2Id);
        }