public TournamentController(ITournamentRepository appDbContext, IFormatRepository formatContext, UserManager <ApplicationUser> userManager) { _context = appDbContext; _formatContext = formatContext; _userManager = userManager; }
public BanlistService ( IBanlistCardService banlistCardService, IBanlistRepository banlistRepository, IFormatRepository formatRepository, IMapper mapper ) { _banlistCardService = banlistCardService; _banlistRepository = banlistRepository; _formatRepository = formatRepository; _mapper = mapper; }
public BookService(IRepository <Book> repository, IFormatRepository formatRepository, IGenreRepository genreRepository, ILanguageLookupDataService languageLookupDataService, IPublisherLookupDataService publisherLookupDataService, IAuthorLookupDataService authorLookupDataService, IFormatLookupDataService formatLookupDataService, IGenreLookupDataService genreLookupDataService) { Repository = repository ?? throw new ArgumentNullException(nameof(repository)); this.languageLookupDataService = languageLookupDataService ?? throw new ArgumentNullException(nameof(languageLookupDataService)); this.publisherLookupDataService = publisherLookupDataService ?? throw new ArgumentNullException(nameof(publisherLookupDataService)); this.authorLookupDataService = authorLookupDataService ?? throw new ArgumentNullException(nameof(authorLookupDataService)); this.formatLookupDataService = formatLookupDataService ?? throw new ArgumentNullException(nameof(formatLookupDataService)); this.genreLookupDataService = genreLookupDataService ?? throw new ArgumentNullException(nameof(genreLookupDataService)); this.formatRepository = formatRepository ?? throw new ArgumentNullException(nameof(formatRepository)); this.genreRepository = genreRepository ?? throw new ArgumentNullException(nameof(genreRepository)); }
public void SetUp() { var config = new MapperConfiguration ( cfg => { cfg.AddProfile(new BanlistProfile()); } ); var mapper = config.CreateMapper(); _banlistRepository = Substitute.For <IBanlistRepository>(); _banlistCardService = Substitute.For <IBanlistCardService>(); _formatRepository = Substitute.For <IFormatRepository>(); _sut = new BanlistService ( _banlistCardService, _banlistRepository, _formatRepository, mapper ); }
public FormatsController(IFormatRepository appDbContext) { _context = appDbContext; }
public GameController(IGameRepository gameRepository, IFormatRepository formatRepository, ITournamentRepository tournamentRepository) { _gameRepository = gameRepository; _formatRepository = formatRepository; _tournamentRepository = tournamentRepository; }
public AdminFormatController(IFormatRepository repo) { repository = repo; }
public FormatService(IFormatRepository formatRepository) { _formatRepository = formatRepository; }
public void SetUp() { _formatRepository = Substitute.For <IFormatRepository>(); _sut = new FormatService(_formatRepository); }