Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/FeatureOne/Core/Stores/FeatureStore.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;

Expand Down
2 changes: 1 addition & 1 deletion src/FeatureOne/FeatureOne.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<Authors>ninja.shayk</Authors>
<Company>Ninja.Sha!4H</Company>
<Product>FeatureOne</Product>
<Description>.Net library to implement feature toggles.</Description>
<Description>.Net library to implement feature toggles (no storage backend).</Description>
<Copyright>Copyright (c) 2023 Ninja Sha!4h</Copyright>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryUrl>https://github.com/NinjaRocks/FeatureOne</RepositoryUrl>
Expand Down
5 changes: 4 additions & 1 deletion src/FeatureOne/IFeatureLogger.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace FeatureOne
namespace FeatureOne
{
/// <summary>
/// Interface to implement custom logger.
Expand All @@ -10,16 +10,19 @@ public interface IFeatureLogger
/// </summary>
/// <param name="message">log message</param>
void Debug(string message);

/// <summary>
/// Implement the error log method
/// </summary>
/// <param name="message">log message</param>
void Error(string message);

/// <summary>
/// Implement the info log method
/// </summary>
/// <param name="message">log message</param>
void Info(string message);

/// <summary>
/// Implement the warn log method
/// </summary>
Expand Down
5 changes: 4 additions & 1 deletion test/FeatureOne.SQL.Tests/E2e Tests/E2eLogger.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
namespace FeatureOne.SQL.Tests.E2e
namespace FeatureOne.SQL.Tests.E2e
{
internal class E2eLogger : IFeatureLogger
{
public void Debug(string message) => Console.WriteLine("Debug:" + message);

public void Error(string message) => Console.WriteLine("Error:" + message);

public void Info(string message) => Console.WriteLine("Info:" + message);

public void Warn(string message) => Console.WriteLine("Warn:" + message);
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using FeatureOne.Core.Toggles.Conditions;
using FeatureOne.SQL;
using System.Text.Json.Nodes;
using FeatureOne.Core.Toggles.Conditions;

namespace FeatureOne.SQL.Tests.UnitTests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Runtime.Caching;
using FeatureOne.SQL.StorageProvider;
using Moq;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using FeatureOne.Core;
using FeatureOne.Core.Toggles.Conditions;
using FeatureOne.SQL;

namespace FeatureOne.SQL.Tests.UnitTests
{
Expand Down
2 changes: 1 addition & 1 deletion test/FeatureOne.Tests/E2E Tests/E2ETests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using FeatureOne.Core.Stores;
using System.Security.Claims;
using FeatureOne.Core.Stores;

namespace FeatureOne.Tests.Registeration
{
Expand Down
2 changes: 1 addition & 1 deletion test/FeatureOne.Tests/FeaturesTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Moq;
using System.Security.Claims;
using Moq;

namespace FeatureOne.Tests
{
Expand Down
2 changes: 1 addition & 1 deletion test/FeatureOne.Tests/ToggleTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using FeatureOne.Core;
using FeatureOne.Core;
using Moq;

namespace FeatureOne.Test
Expand Down
2 changes: 1 addition & 1 deletion test/FeatureOne.Tests/Toggles/RegexConditionTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using FeatureOne.Core.Toggles.Conditions;
using FeatureOne.Core.Toggles.Conditions;

namespace FeatureOne.Test.Toggles
{
Expand Down
2 changes: 1 addition & 1 deletion test/FeatureOne.Tests/Toggles/SimpleConditionTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using FeatureOne.Core.Toggles.Conditions;
using FeatureOne.Core.Toggles.Conditions;

namespace FeatureOne.Test.Toggles
{
Expand Down