Exemplo n.º 1
0
        public async Task Then_the_last_run_date_is_obtained()
        {
            // Act
            await Sut.ProcessProviders();

            // Assert
            AssessorServiceApiClient.Verify(v => v.GetAssessorSetting("RefreshIlrsLastRunDate"), Times.Once);
        }
        public virtual void Arrange()
        {
            _mockHttpMessageHandler = new Mock <HttpMessageHandler>();
            _mockLogger             = new Mock <ILogger <AssessorServiceApiClient> >();

            _mockOptions = new Mock <IOptions <AssessorApiAuthentication> >();
            _mockOptions.Setup(m => m.Value).Returns(new AssessorApiAuthentication {
                ApiBaseAddress = "http://localhost:8080"
            });

            _sut = new AssessorServiceApiClient(new HttpClient(_mockHttpMessageHandler.Object), _mockOptions.Object, _mockLogger.Object);
        }