Example #1
0
        public async Task GetLatestChangeFromConfiguredContainer()
        {
            (var persistenceProvider, var subject) = CreateSubject();

            var latestChange = await subject.GetDateOfLastChangeAsync(CancellationToken.None);

            A.CallTo(() => persistenceProvider.GetDateOfLastChangeAsync(ConnectionString, ContainerName, A <CancellationToken> .Ignored)).MustHaveHappenedOnceExactly();
        }
Example #2
0
 public Task <DateTimeOffset?> GetDateOfLastChangeAsync(CancellationToken cancellationToken)
 {
     return(_persistenceProvider.GetDateOfLastChangeAsync(_options.Value.ConnectionString, _options.Value.CategorizedFacesContainerName, cancellationToken));
 }