public async Task SingleOrDefaultAsync_Should_ReturnNull_WhenNoBlogSettingsFile()
        {
            var options = new PineBlogGitDbOptions()
            {
                Branch = "test"
            };
            var optionsMock = new Mock <IOptionsSnapshot <PineBlogGitDbOptions> >();

            optionsMock.Setup(m => m.Value).Returns(options);
            var gitDbContext = ServiceProvider.GetRequiredService <GitDbContext>();

            var blogSettingsRepository = new BlogSettingsRepository(gitDbContext, optionsMock.Object);

            var result = await blogSettingsRepository.SingleOrDefaultAsync(CancellationToken.None);

            result.Should().BeNull();
        }
 public BlogSettingsRepositoryTests(GitDbFixture fixture) : base(fixture)
 {
     _uow = ServiceProvider.GetRequiredService <IBlogUnitOfWork>();
     _blogSettingsRepository = (BlogSettingsRepository)_uow.BlogSettings;
 }