public void MissingListingPathReturnsFailure( FilePath missing, CancellationToken cancel, RegistryListingsProvider sut) { sut.FilePathProvider.Path.Returns(missing); sut.Get(cancel) .Succeeded.Should().BeFalse(); }
public void PassesListingPathToReader( FilePath existing, CancellationToken cancel, RegistryListingsProvider sut) { sut.FilePathProvider.Path.Returns(existing); sut.Get(cancel); sut.ListingReader.Received(1).Read(existing); }
public void FailedPrepReturnsFail( ErrorResponse fail, CancellationToken cancel, RegistryListingsProvider sut) { sut.PrepRegistryRepository.Prep(cancel) .Returns(fail); sut.Get(cancel) .Succeeded.Should().BeFalse(); }