public void RemoveAdminFieldFromCourse_calls_data_service_with_correct_values() { // Given A.CallTo(() => courseAdminFieldsDataService.UpdateAdminFieldForCourse(1, 1, 0, null)) .DoesNothing(); A.CallTo(() => courseAdminFieldsDataService.DeleteAllAnswersForCourseAdminField(1, 1)).DoesNothing(); // When courseAdminFieldsService.RemoveAdminFieldFromCourse(1, 1); // Then A.CallTo( () => courseAdminFieldsDataService.UpdateAdminFieldForCourse(1, 1, 0, null) ).MustHaveHappened(); A.CallTo(() => courseAdminFieldsDataService.DeleteAllAnswersForCourseAdminField(1, 1)) .MustHaveHappened(); }