public async void WhenClearDatabaseIsCalled_ThenExecuteAsyncMethodIsCalledOnce() { await _databaseUpdater.ClearDatabase(); // Verify ExecuteAsync method is called _dapperWrapperMock.Verify(mock => mock.ExecuteAsync(It.IsAny <string>(), null), Times.Once()); }
private async void ClearDatabase() { await _databaseUpdater.ClearDatabase(); }