public async Task GetAllServicePoints_ItemsFoundInCach_DoesNotCallService() { ServicePointInformation[] cachedResult = { new ServicePointInformation { Id = Factory.GetString(7) }, new ServicePointInformation { Id = Factory.GetString(7) }, new ServicePointInformation { Id = Factory.GetString(7) } }; _cacheHelperMock.Setup(m => m.Get <ServicePointInformation[]>(It.IsAny <string>())).Returns(cachedResult); await _service.GetAllServicePointsAsync(_clientInfo); Assert.Equal(0, _messageHandler.CallCount()); }