public BangaloreUniversityEngine(IBangaloreUniversityDatebase database)
        {
            if (database == null)
            {
                throw new ArgumentNullException("Database cannot be null");
            }

            this.database = database;
        }
        public void Initialize_Mocks()
        {
            var dataMock = new Mock<IBangaloreUniversityDatebase>();
            var courseRepoMock = new Mock<IRepository<Course>>();
            this.course = new Course("C# babies");
            courseRepoMock.Setup(r => r.GetById(It.IsAny<int>()))
                .Returns(this.course);

            dataMock.Setup(r => r.Courses)
                .Returns(courseRepoMock.Object);

            this.mockedData = dataMock.Object;
        }
 public CoursesController(IBangaloreUniversityDatebase data, User user)
 {
     this.Data = data;
     this.User = user;
 }