Example #1
0
        //public CoachService()
        //{
        //    this.context = new BookmakerContext();
        //}

        // Constructor
        /// <summary>
        /// Initializes a new instance of <c>CoachService</c> with parameter <paramref name="context"/>.
        /// </summary>
        /// <param name="context">A BookmakerContext.</param>
        public CoachService(BookmakerContext context)
        {
            this.context = context;
        }
Example #2
0
        //public MatchService()
        //{
        //    this.context = new BookmakerContext();
        //}

        // Constructor
        /// <summary>
        /// Initializes a new instance of <c>MatchService</c> with parameter <paramref name="context"/>.
        /// </summary>
        /// <param name="context">A BookmakerContext.</param>
        public MatchService(BookmakerContext context)
        {
            this.context       = context;
            this.resultService = new ResultService(context);
        }
Example #3
0
        //public InjuryService()
        //{
        //    this.context = new BookmakerContext();
        //}

        // Constructor
        /// <summary>
        /// Initializes a new instance of <c>InjuryService</c> with parameter <paramref name="context"/>.
        /// </summary>
        /// <param name="context">A BookmakerContext.</param>
        public InjuryService(BookmakerContext context)
        {
            this.context = context;
        }
Example #4
0
        //public TeamService()
        //{
        //    this.context = new BookmakerContext();
        //    this.playerService = new PlayerService(context);
        //    this.coachService = new CoachService(context);
        //}

        // Constructor
        /// <summary>
        /// Initializes a new instance of <c>TeamService</c> with parameter <paramref name="context"/>.
        /// </summary>
        /// <param name="context">A BookmakerContext.</param>
        public TeamService(BookmakerContext context)
        {
            this.context       = context;
            this.playerService = new PlayerService(context);
            this.coachService  = new CoachService(context);
        }
Example #5
0
        //public PlayerService()
        //{
        //    this.context = new BookmakerContext();
        //    this.injuryService = new InjuryService();
        //}

        // Constructor
        /// <summary>
        /// Initializes a new instance of <c>PlayerService</c> with parameter <paramref name="context"/>.
        /// </summary>
        /// <param name="context">A BookmakerContext.</param>
        public PlayerService(BookmakerContext context)
        {
            this.context       = context;
            this.injuryService = new InjuryService(context);
        }
Example #6
0
 // Constructor
 /// <summary>
 /// Initializes a new instance of <c>ResultService</c> with parameter <paramref name="context"/>.
 /// </summary>
 /// <param name="context">A BookmakerContext.</param>
 public ResultService(BookmakerContext context)
 {
     this.context = context;
 }