public TournamentController(ITournamentRepository appDbContext, IFormatRepository formatContext,
                             UserManager <ApplicationUser> userManager)
 {
     _context       = appDbContext;
     _formatContext = formatContext;
     _userManager   = userManager;
 }
Пример #2
0
 public BanlistService
 (
     IBanlistCardService banlistCardService,
     IBanlistRepository banlistRepository,
     IFormatRepository formatRepository,
     IMapper mapper
 )
 {
     _banlistCardService = banlistCardService;
     _banlistRepository  = banlistRepository;
     _formatRepository   = formatRepository;
     _mapper             = mapper;
 }
Пример #3
0
 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));
 }
Пример #4
0
        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;
 }
Пример #6
0
 public GameController(IGameRepository gameRepository, IFormatRepository formatRepository, ITournamentRepository tournamentRepository)
 {
     _gameRepository       = gameRepository;
     _formatRepository     = formatRepository;
     _tournamentRepository = tournamentRepository;
 }
 public AdminFormatController(IFormatRepository repo)
 {
     repository = repo;
 }
Пример #8
0
 public FormatService(IFormatRepository formatRepository)
 {
     _formatRepository = formatRepository;
 }
Пример #9
0
        public void SetUp()
        {
            _formatRepository = Substitute.For <IFormatRepository>();

            _sut = new FormatService(_formatRepository);
        }