public async Task PropertyExistsReturnFailWhenServiceIsDown() { string propertyId = It.IsAny <String>(); mockBlockService.Setup(m => m.InvokeHead(HyperledgerConsts.PropertyUrl, propertyId)) .ThrowsAsync(new HttpRequestException()); bool isPropertyExist = await clientWithMock.PropertyExists(propertyId); Assert.IsFalse(isPropertyExist); }