Skip to content

Instantly share code, notes, and snippets.

View avegaraju's full-sized avatar
🤘
I may be slow to respond.

Ashish avegaraju

🤘
I may be slow to respond.
View GitHub Profile
public class ProductsImposter : IImposter
{
public Imposter Build()
{
return new ImposterDefinition("ProductsMock")
.DeclareResource("/api/Products", HttpMethod.Post)
.When(r => r.Content.Contains("Name:Test product"))
.Then(new ProductResponseCreator())
.Build();
}