Ejemplo n.º 1
0
        public InventoryControllerTests()
        {
            _context = new GilliganTestContext();
            var container = Bootstrapper.RegisterTypes();
            var mapper    = container.Resolve <IMapper>();

            _inventoryController = new InventoryController(new InventoryService(new GenreRepository(_context), new ArtistRepository(_context), new AlbumRepository(_context), new SongRepository(_context), new UserRepository(_context)), mapper);
        }
Ejemplo n.º 2
0
        public SearchControllerTests()
        {
            _context = new GilliganTestContext();
            var container = Bootstrapper.RegisterTypes();
            var mapper    = container.Resolve <IMapper>();

            _searchController = new SearchController(mapper, new SearchService(new SongRepository(_context), new AlbumRepository(_context), new ArtistRepository(_context), new GenreRepository(_context)));
        }
 public ArtistRepositoryTests()
 {
     _context          = new GilliganTestContext();
     _artistRepository = new ArtistRepository(_context);
 }
Ejemplo n.º 4
0
 public UserRepositoryTests()
 {
     _context        = new GilliganTestContext();
     _userRepository = new UserRepository(_context);
 }
 public RatingServiceTests()
 {
     _context       = new GilliganTestContext();
     _ratingService = new RatingService(new SongRepository(_context), new ArtistRepository(_context), new GenreRepository(_context), new AlbumRepository(_context), new UserRepository(_context));
 }
 public RatingRepositoryTests()
 {
     _context          = new GilliganTestContext();
     _ratingRepository = new RatingRepository(_context);
 }
 public AlbumRepositoryTests()
 {
     _context         = new GilliganTestContext();
     _albumRepository = new AlbumRepository(_context);
 }
 public SearchServiceTests()
 {
     _context       = new GilliganTestContext();
     _searchService = new SearchService(new SongRepository(_context), new AlbumRepository(_context),
                                        new ArtistRepository(_context), new GenreRepository(_context));
 }
Ejemplo n.º 9
0
 public InventoryServiceTests()
 {
     _context          = new GilliganTestContext();
     _inventoryService = new InventoryService(new GenreRepository(_context), new ArtistRepository(_context), new AlbumRepository(_context), new SongRepository(_context), new UserRepository(_context));
 }
Ejemplo n.º 10
0
 public GenreRepositoryTests()
 {
     _context         = new GilliganTestContext();
     _genreRepository = new GenreRepository(_context);
 }
Ejemplo n.º 11
0
 public SongRepositoryTests()
 {
     _context        = new GilliganTestContext();
     _songRepository = new SongRepository(_context);
 }