Exemplo n.º 1
0
        public TournamentService(IYoyoTournamentsDbContext dbContext, IDivisionTypeService divisionTypeService)
        {
            Guard.WhenArgument(dbContext, nameof(dbContext)).IsNull().Throw();
            Guard.WhenArgument(divisionTypeService, nameof(divisionTypeService)).IsNull().Throw();

            this.dbContext           = dbContext;
            this.divisionTypeService = divisionTypeService;
        }
Exemplo n.º 2
0
        public DivisionTypeController(IDivisionTypeService service)
        {
            Guard.WhenArgument(service, nameof(service)).IsNull().Throw();

            this.service = service;
        }