Skip to content

Commit

Permalink
Merge pull request #88 from prplecake/dev/tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
prplecake authored Jul 6, 2023
2 parents 538c09d + cb69809 commit 81bd1ad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/BookmarkSync.Core/Configuration/ConfigManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ public ConfigManager(
throw new InvalidConfigurationException();
}
}
public IConfiguration Configuration { get; set; }
public List<Instance>? Instances { get; set; }
public App App { get; set; }
private IConfiguration Configuration { get; }
public List<Instance>? Instances { get; }
public App App { get; }
public string GetConfigValue(string key)
{
_logger.Debug("Running {Method} for key: {Key}", "GetConfigValue", key);
Expand All @@ -44,5 +44,6 @@ public string GetConfigValue(string key)
public void SaveToFile()
{
Console.WriteLine(Directory.GetCurrentDirectory());
throw new NotImplementedException();
}
}
2 changes: 1 addition & 1 deletion src/BookmarkSync.Core/Meta.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace BookmarkSync.Core;

public static class Meta
{
public const string
private const string
Name = "mastodon-bookmark-sync",
Version = "2.0";
public static readonly ProductInfoHeaderValue UserAgent = new(Name, Version);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ public void Init()
public void ConfigManager_HasProperties()
{
// Assert
Assert.AreEqual(3, _configManager?.PropertyCount());
Assert.IsTrue(_configManager?.HasProperty("Configuration"));
Assert.AreEqual(2, _configManager?.PropertyCount());
Assert.IsTrue(_configManager?.HasProperty("Instances"));
Assert.IsTrue(_configManager?.HasProperty("App"));

Expand Down

0 comments on commit 81bd1ad

Please sign in to comment.