public async Task Receive_WhenAttachmentsMessage_CallsMessengerClient() { _zomatoClientMock.Setup(e => e.CallZomatoApi (It.IsAny <double>(), It.IsAny <double>())) .Returns(Task.FromResult(CreateNearby())); var httpRequestStub = CreateHttpRequestStub(GetAttachmentsMessageRequestJson()); await _messengerService.Receive(httpRequestStub.Object); _messengerClientMock.Verify(e => e.CallSendApi (It.IsAny <string>(), It.IsAny <string>()), Times.Once); }