示例#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;
        }
        public DivisionTypeService(IYoyoTournamentsDbContext dbContext)
        {
            Guard.WhenArgument(dbContext, "dbContext").IsNull().Throw();

            this.dbContext = dbContext;
        }