Exemple #1
0
        public void Setup()
        {
            _baseAddress = new Uri("http://localhost");
            _testClient  = new TestHttpClient(_baseAddress);
            _testClient.SetUpPostAsAsync(HttpStatusCode.OK);

            _sut = new EarningsResilienceCheckService(_testClient);
        }
Exemple #2
0
        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);
        }