public void Setup() { _baseAddress = new Uri("http://localhost"); _testClient = new TestHttpClient(_baseAddress); _testClient.SetUpPostAsAsync(HttpStatusCode.OK); _sut = new EarningsResilienceCheckService(_testClient); }
public async Task Then_The_InnerApi_Is_Called( [Frozen] Mock <IEmployerIncentivesApiClient <EmployerIncentivesConfiguration> > client, EarningsResilienceCheckService service) { await service.RunCheck(); client.Verify(x => x.Post <string>(It.IsAny <EarningsResilenceCheckRequest>()), Times.Once); }