Skip to content

Commit

Permalink
Typos fixed, minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Feb 2, 2018
1 parent 095b5f6 commit 694e5db
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion BigWatson.Unit/MainTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void DatabaseExportTest()
BigWatson.Instance.ExportDatabaseAsync(path).Wait();

// Check
IReadOnlyExceptionManager loaded = BigWatson.Load(path);
IReadOnlyExceptionsManager loaded = BigWatson.Load(path);
ExceptionsCollection reports = loaded.LoadCrashReportsAsync().Result;
Assert.IsTrue(reports.ExceptionsCount == 1);
Assert.IsTrue(reports.Exceptions.First().ExceptionType.Equals(typeof(InvalidOperationException).ToString()));
Expand Down
6 changes: 3 additions & 3 deletions BigWatson/BigWatson.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ private static RealmConfiguration DefaultConfiguration
/// </summary>
[PublicAPI]
[NotNull]
public static IExceptionsManager Instance => _Instance ?? (_Instance = new ReadWriteExceptionsManager(DefaultConfiguration));
public static IExceptionsManager Instance => _Instance ?? (_Instance = new ExceptionsManager(DefaultConfiguration));

/// <summary>
/// Gets an <see cref="IReadOnlyExceptionManager"/> instance to access crash reports from an external database
/// Gets an <see cref="IReadOnlyExceptionsManager"/> instance to access crash reports from an external database
/// </summary>
/// <param name="path">The path to the exported crash reports database to open</param>
[PublicAPI]
[Pure, NotNull]
public static IReadOnlyExceptionManager Load([NotNull] String path) => new ReadOnlyExceptionsManager(new RealmConfiguration(path));
public static IReadOnlyExceptionsManager Load([NotNull] String path) => new ReadOnlyExceptionsManager(new RealmConfiguration(path));
}
}
6 changes: 3 additions & 3 deletions BigWatson/BigWatson.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageReleaseNotes>• Added database JSON export APIs
• Code changes and improvements</PackageReleaseNotes>
<AssemblyVersion>1.1.0.0</AssemblyVersion>
<FileVersion>1.1.0.0</FileVersion>
<Version>1.1.0</Version>
<AssemblyVersion>1.1.1.0</AssemblyVersion>
<FileVersion>1.1.1.0</FileVersion>
<Version>1.1.1</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
Expand Down
2 changes: 1 addition & 1 deletion BigWatson/Interfaces/IExceptionsManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace BigWatsonDotNet.Interfaces
/// <summary>
/// An interface for an exceptions manager instance with write permission
/// </summary>
public interface IExceptionsManager : IReadOnlyExceptionManager
public interface IExceptionsManager : IReadOnlyExceptionsManager
{
/// <summary>
/// Saves the crash report into local storage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace BigWatsonDotNet.Interfaces
/// <summary>
/// The base interface for readonly exceptions managers
/// </summary>
public interface IReadOnlyExceptionManager : IEquatable<IReadOnlyExceptionManager>
public interface IReadOnlyExceptionsManager : IEquatable<IReadOnlyExceptionsManager>
{
/// <summary>
/// Loads the groups with the previous exceptions from the <see cref="Realm"/> instance in use
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ namespace BigWatsonDotNet.Managers
/// <summary>
/// A complete exceptions manager with read and write permission
/// </summary>
internal sealed class ReadWriteExceptionsManager : ReadOnlyExceptionsManager, IExceptionsManager
internal sealed class ExceptionsManager : ReadOnlyExceptionsManager, IExceptionsManager
{
public ReadWriteExceptionsManager([NotNull] RealmConfiguration configuration) : base(configuration) { }
public ExceptionsManager([NotNull] RealmConfiguration configuration) : base(configuration) { }

#region Write APIs

Expand Down
6 changes: 3 additions & 3 deletions BigWatson/Managers/ReadOnlyExceptionsManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace BigWatsonDotNet.Managers
/// <summary>
/// A readonly exceptions manager to provider access to any kind of crash reports database
/// </summary>
internal class ReadOnlyExceptionsManager : IReadOnlyExceptionManager
internal class ReadOnlyExceptionsManager : IReadOnlyExceptionsManager
{
/// <summary>
/// Gets the default <see cref="RealmConfiguration"/> instance for the <see cref="Realm"/> used by the library
Expand Down Expand Up @@ -124,7 +124,7 @@ select header
#region IEquatable

/// <inheritdoc/>
public bool Equals(IReadOnlyExceptionManager other)
public bool Equals(IReadOnlyExceptionsManager other)
{
if (other == null) return false;
if (ReferenceEquals(other, this)) return true;
Expand All @@ -134,7 +134,7 @@ other is ReadOnlyExceptionsManager manager &&
}

/// <inheritdoc/>
public override bool Equals(object obj) => Equals(obj as IReadOnlyExceptionManager);
public override bool Equals(object obj) => Equals(obj as IReadOnlyExceptionsManager);

/// <inheritdoc/>
[SuppressMessage("ReSharper", "NonReadonlyMemberInGetHashCode")]
Expand Down

0 comments on commit 694e5db

Please sign in to comment.