Beispiel #1
0
        public void Construct()
        {
            var scorecardRepository = new ScoreCardRepository();

            scorecardRepository.Should()
            .BeOfType <ScoreCardRepository>();
        }
Beispiel #2
0
 public UnitOfWork(DataBaseContext context)
 {
     _context    = context;
     HoleCards   = new HoleCardRepository(_context);
     Holes       = new HoleRepository(_context);
     PlayerCards = new PlayerCardRepository(_context);
     Courses     = new CourseRepository(_context);
     ScoreCards  = new ScoreCardRepository(_context);
     Friends     = new FriendRepository(_context);
 }
Beispiel #3
0
        public Fields GetDroid(int id)
        {
            var repo = new ScoreCardRepository(new Models.AgilityInsightContext());

            return(repo.GetFields().ToList().FirstOrDefault(x => x.Id == id));
        }