public TestContext ArrangePostJob() { ArrangeJob(HttpVerb.Post); _client .Expect(c => c.PostAsync(Arg <Uri> .Is.Equal(_job.CallbackUrl), Arg <StringContent> .Is.Anything)) .Return(Task.FromResult(_fixture.Create <HttpResponseMessage>())); if (_timeout.HasValue) { _client.Expect(c => c.Timeout).SetPropertyWithArgument(_timeout.Value); } return(this); }