public void PostEditAdminField_save_calls_correct_methods()
        {
            // Given
            var          model  = new EditAdminFieldViewModel(1, "Test", "Options");
            const string action = "save";

            A.CallTo(
                () => courseAdminFieldsService.UpdateAdminFieldForCourse(
                    1,
                    1,
                    "Options"
                    )
                ).DoesNothing();

            // When
            var result = controller.EditAdminField(1, model, action);

            // Then
            A.CallTo(
                () => courseAdminFieldsService.UpdateAdminFieldForCourse(
                    1,
                    1,
                    "Options"
                    )
                ).MustHaveHappened();
            result.Should().BeRedirectToActionResult().WithActionName("Index");
        }
        public void UpdateAdminFieldForCourse_calls_data_service()
        {
            // Given
            A.CallTo(() => courseAdminFieldsDataService.UpdateAdminFieldForCourse(1, 1, null)).DoesNothing();

            // When
            courseAdminFieldsService.UpdateAdminFieldForCourse(1, 1, null);

            // Then
            A.CallTo(() => courseAdminFieldsDataService.UpdateAdminFieldForCourse(1, 1, null)).MustHaveHappened();
        }