public async Task BulkDeleteProviderCourseLocations_ReturnsNoContent( [Frozen] Mock <IMediator> mediatorMock, [Greedy] ProviderCourseLocationDeleteController sut, int ukprn, int larsCode, BulkDeleteProviderCourseLocationsCommand command) { var response = await sut.BulkDeleteProviderCourseLocations(ukprn, larsCode, command); (response as NoContentResult).Should().NotBeNull(); }
public async Task BulkDeleteProviderCourseLocations_InvokesCommand( [Frozen] Mock <IMediator> mediatorMock, [Greedy] ProviderCourseLocationDeleteController sut, int ukprn, int larsCode, BulkDeleteProviderCourseLocationsCommand command) { await sut.BulkDeleteProviderCourseLocations(ukprn, larsCode, command); mediatorMock.Verify(m => m.Send(command, It.IsAny <CancellationToken>())); }