public void GivenAllAuthenticationLogsGetMethod_WhenReceivesCorrectQuery_ThenFireMediatorSendMethod() { var mockMediator = Substitute.For <IMediator>(); var loggingController = new LoggingController(mockMediator); loggingController.GetAllAuthenticationLogs(); mockMediator.Received().Send(Arg.Any <AllAuthenticationLogsQuery>()); }