Skip to content

Commit

Permalink
Re-structuring classes under "Linq" folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Turnerj committed Nov 17, 2019
1 parent 48d8337 commit dceb2db
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using MongoFramework.Infrastructure.Linq.Translation.Translators;
using System;
using System.Collections.Generic;
using System.Text;
using MongoFramework.Infrastructure.Querying.Translators;

namespace MongoFramework.Infrastructure.Querying
namespace MongoFramework.Infrastructure.Linq.Translation
{
public static class DefaultTranslators
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
using System.Text;
using MongoDB.Bson;
using MongoFramework.Infrastructure.Mapping;
using MongoFramework.Infrastructure.Querying.Translators;

namespace MongoFramework.Infrastructure.Querying
namespace MongoFramework.Infrastructure.Linq.Translation
{
public static class ExpressionTranslation
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Text;
using MongoDB.Bson;

namespace MongoFramework.Infrastructure.Querying
namespace MongoFramework.Infrastructure.Linq.Translation
{
public static class StageBuilder
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using MongoDB.Bson;
using MongoFramework.Infrastructure.Mapping;

namespace MongoFramework.Infrastructure.Querying
namespace MongoFramework.Infrastructure.Linq.Translation
{
public static class TranslationHelper
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Text;
using MongoDB.Bson;

namespace MongoFramework.Infrastructure.Querying
namespace MongoFramework.Infrastructure.Linq.Translation
{
public interface IQueryTranslator { }
public interface IMethodTranslator : IQueryTranslator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Text;
using MongoDB.Bson;

namespace MongoFramework.Infrastructure.Querying.Translators
namespace MongoFramework.Infrastructure.Linq.Translation.Translators
{
public class OrderByTranslator : IMethodTranslator
{
Expand All @@ -30,7 +30,7 @@ public BsonValue TranslateMethod(MethodCallExpression expression, IEnumerable<Ex
"$sort",
new BsonDocument
{
{
{
ExpressionTranslation.TranslateSubExpression(expression.Arguments[1]).AsString,
direction
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Text;
using MongoDB.Bson;

namespace MongoFramework.Infrastructure.Querying.Translators
namespace MongoFramework.Infrastructure.Linq.Translation.Translators
{
public class SelectTranslator : IMethodTranslator
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Text;
using MongoDB.Bson;

namespace MongoFramework.Infrastructure.Querying.Translators
namespace MongoFramework.Infrastructure.Linq.Translation.Translators
{
public class WhereTranslator : IMethodTranslator
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using MongoDB.Bson;
using MongoFramework.Infrastructure.Querying;
using MongoFramework.Infrastructure.Querying.Translators;
using MongoFramework.Infrastructure.Linq.Translation;

namespace MongoFramework.Tests.Infrastructure.Querying
namespace MongoFramework.Tests.Infrastructure.Linq.Translation
{
[TestClass]
public class ExpressionTranslationTests : QueryTestBase
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System;
using MongoFramework.Infrastructure.Linq.Translation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using MongoFramework.Infrastructure.Querying;

namespace MongoFramework.Tests.Infrastructure.Querying
namespace MongoFramework.Tests.Infrastructure.Linq.Translation
{
public abstract class QueryTestBase : TestBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using MongoFramework.Infrastructure.Querying;
using MongoFramework.Infrastructure.Linq.Translation;

namespace MongoFramework.Tests.Infrastructure.Querying
namespace MongoFramework.Tests.Infrastructure.Linq.Translation
{
[TestClass]
public class StageBuilderTests : QueryTestBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using MongoDB.Bson;
using MongoFramework.Infrastructure.Querying.Translators;
using MongoFramework.Infrastructure.Linq.Translation.Translators;

namespace MongoFramework.Tests.Infrastructure.Querying.Translators
namespace MongoFramework.Tests.Infrastructure.Linq.Translation.Translators
{
[TestClass]
public class WhereTranslatorTests : QueryTestBase
Expand Down

0 comments on commit dceb2db

Please sign in to comment.