private void GivenACourseManager(out CourseManager sut)
 {
     // Arrange, Act
     sut = new CourseManager(FakeProvider.Provider, FakeProvider.ConnectionStringName);
     // Assert
     A.CallTo(() => FakeProvider.Provider.Instance(FakeProvider.ConnectionStringName)).MustHaveHappened();
 }
 private void WhenICreateAProposedCourse(CourseManager sut, string name, double credits, int classHoursPerWeek, out int  result)
 {
     // Arrange
     Course data = new Course() { CourseName = name, Credits = credits, ClassHourPerWeek = classHoursPerWeek };
     // Act
     result = sut.AddCourse(data);
     // Assert
     A.CallTo(() => FakeProvider.Context.GetRepository<Course>()).MustHaveHappened();
 }
 private void Then_TheCourseStatusIs(CourseStatus status, int courseId, CourseManager sut)
 {
     Course info = sut.GetCourse(courseId);
     Assert.Equal(status.ToString(), info.Status);
 }
 private void Then_TheCourseNameStartsWith(string text, int courseId, CourseManager sut)
 {
     Course info = sut.GetCourse(courseId);
     Assert.NotNull(info);
     Assert.True(info.CourseName.StartsWith(text));
 }