Hello guys. I'm exploring <Release - 4.0.0-beta.1>...
# pact-net
d
Hello guys. I'm exploring Release - 4.0.0-beta.1. Couldn't find a way to define provider states on consumer side. How can I do this?
t
Hi David, I think you can use the "Given" to define the provider states pact.UponReceiving("A valid request for all products") .Given("products exist") .WithRequest(HttpMethod.Get, "/api/products") .WillRespond( .........
☝️ 1
f
there is no given when using intellisense. the others appears (WIthRquest, UponReceiving)
d
@Tawfik Nouri, thank you. It indeed appears after "UponReceiving"