text stringlengths 9 39.2M | dir stringlengths 25 226 | lang stringclasses 163
values | created_date timestamp[s] | updated_date timestamp[s] | repo_name stringclasses 751
values | repo_full_name stringclasses 752
values | star int64 1.01k 183k | len_tokens int64 1 18.5M |
|---|---|---|---|---|---|---|---|---|
```smalltalk
#if EFCORE
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.DynamicLinq;
#else
using System.Data.Entity;
using EntityFramework.DynamicLinq;
#endif
using System.Threading.Tasks;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class EntitiesTests
{
[Fact]
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/EntitiesTests.AnyAsync.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 464 |
```smalltalk
using System.Collections.Generic;
using FluentAssertions;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class QueryableTests
{
public class DataRecord
{
public List<Dictionary<string, string>> ListOfDictionaries { get; }
public Dictionary<string, string> Fi... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.ContainsKey.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 392 |
```smalltalk
using System.Collections.Generic;
using NFluent;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void GroupByMany_Dynamic_LambdaExpressions()
{
var lst = new List<Tuple<int, int, int>>
{
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.GroupByMany.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 515 |
```smalltalk
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void Count()
{
//Arrange
IQueryable testListFull = User.GenerateSampleModels(100).AsQuery... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.Count.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 526 |
```smalltalk
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void Min()
{
// Arrange
var incomes = User.GenerateSampleModels(100).Select(u => u.Income... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.Min.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 170 |
```smalltalk
using System.Collections.Generic;
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void All_Predicate()
{
//Arrange
var queryable = User.G... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.All.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 402 |
```smalltalk
using System.Collections.Generic;
using FluentAssertions;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void Union_Dynamic_ListOfStrings()
{
// Arrange
var list1 = new List<bool> { true };... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.Union.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 172 |
```smalltalk
using System.Linq.Dynamic.Core.Exceptions;
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using NFluent;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public class OperatorTests
{
[Fact]
public void Operator_NullPropagation()
{
// Arrange
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/OperatorTests.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 306 |
```smalltalk
using System.Collections.Generic;
using System.Linq.Dynamic.Core.CustomTypeProviders;
using Moq;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class QueryableTests
{
[Fact]
public void CallMethod()
{
// Arrange
var customTypeProvider = new Mock<IDynamic... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.Methods.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 485 |
```smalltalk
using System.Collections;
using System.Collections.Generic;
using System.Linq.Dynamic.Core.Exceptions;
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
public class IntComparerT : IComparer<in... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.OrderBy.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 1,148 |
```smalltalk
using System.Collections.Generic;
using NFluent;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public class DynamicEnumerableExtensionsTests
{
[Fact]
public void DynamicEnumerableExtensions_ToDynamicArray_int_to_int()
{
// Act
var result = ... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/DynamicEnumerableExtensionsTests.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 224 |
```smalltalk
using System.Collections.Generic;
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void Distinct()
{
//Arrange
var list = new[] { 1, 2, 2,... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.Distinct.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 396 |
```smalltalk
using FluentAssertions;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class ExpressionTests
{
[Fact]
public void ExpressionTests_Add_Number()
{
// Arrange
var values = new[] { -1, 2 }.AsQueryable();
// Act
var result = values.Select<int... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/ExpressionTests.AddAndSubstract.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 758 |
```smalltalk
using System.Threading.Tasks;
using Testcontainers.MsSql;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
/// <summary>
/// path_to_url
/// </summary>
public class EntitiesTestsDatabaseFixture : IAsyncLifetime
{
private readonly MsSqlContainer _msSqlContainer = new MsSqlBuilder().Build();
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/EntitiesTests.DatabaseFixture.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 209 |
```smalltalk
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void Take()
{
//Arrange
var testList = User.GenerateSampleModels(100);
IQuery... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.Take.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 209 |
```smalltalk
#if EFCORE
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.DynamicLinq;
#else
using System.Data.Entity;
using EntityFramework.DynamicLinq;
#endif
using System.Threading.Tasks;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class EntitiesTests
{
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/EntitiesTests.LastAsync.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 282 |
```smalltalk
using System.Collections.Generic;
using System.Linq.Dynamic.Core.Exceptions;
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using FluentAssertions;
using NFluent;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
#if NET46_OR_GREATER || NET5_0_OR_GREATER || NETCOREAPP2_1_OR_GREATER || NETSTAND... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.FormattableString.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 3,810 |
```smalltalk
using System.IO;
using System.Linq.Dynamic.Core.CustomTypeProviders;
using FluentAssertions;
using NFluent;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public class DefaultDynamicLinqCustomTypeProviderTests
{
private readonly IDynamicLinkCustomTypeProvider _sut;
public DefaultDynamicL... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/DefaultDynamicLinqCustomTypeProviderTests.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 295 |
```smalltalk
using System.Collections.Generic;
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using FluentAssertions;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class QueryableTests
{
[Fact]
public void Any()
{
//Arrange
IQueryable testListFull = User.Gener... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.Any.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 1,457 |
```smalltalk
#if EFCORE
using Microsoft.EntityFrameworkCore.DynamicLinq;
#else
using EntityFramework.DynamicLinq;
#endif
using System.Threading.Tasks;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class EntitiesTests
{
[Fact]
public async Task Entities_FirstAsync()
{
// rra... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/EntitiesTests.FirstAsync.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 271 |
```smalltalk
using System.IO;
using System.Linq.Dynamic.Core.Exceptions;
using System.Net;
using System.Reflection;
using FluentAssertions;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public class SecurityTests
{
class Message
{
public string Sender { get; }
public string Receiver {... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/SecurityTests.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 549 |
```smalltalk
using System.Linq.Dynamic.Core.Exceptions;
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void OrderByDescending_Dynamic()
{
//Arrange
v... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.OrderByDescending.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 304 |
```smalltalk
using NFluent;
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void FirstOrDefault()
{
// Arrange
var testList = User.GenerateSampleModel... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.FirstOrDefault.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 464 |
```smalltalk
using NFluent;
using System.Collections.Generic;
using System.Linq.Dynamic.Core.Tests.Entities;
using Xunit;
using User = System.Linq.Dynamic.Core.Tests.Helpers.Models.User;
namespace System.Linq.Dynamic.Core.Tests
{
public class ComplexTests
{
public class Claim
{
publ... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/ComplexTests.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 1,252 |
```smalltalk
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void Last()
{
//Arrange
var testList = User.GenerateSampleModels(100);
IQuery... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.Last.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 578 |
```smalltalk
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using NFluent;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void ExpressionOptimizerIsNull()
{
ExtensibilityPoint.QueryOptimizer = null;
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.ExpressionOptimizer.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 128 |
```smalltalk
using System.Collections.Generic;
using System.Linq.Dynamic.Core.Exceptions;
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using FluentAssertions;
using NFluent;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void ... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.Join.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 1,646 |
```smalltalk
#if !NET452
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Linq.Dynamic.Core.CustomTypeProviders;
using System.Reflection;
using FluentAssertions;
using NodaTime;
using NodaTime.Text;
using Xunit;
namespace Sys... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/TypeConvertors/NodaTimeConverterTests.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 1,193 |
```smalltalk
using FluentAssertions;
using System.Linq.Dynamic.Core.TypeConverters;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests.TypeConvertors
{
public class CustomDateTimeConverterTests
{
private readonly CustomDateTimeConverter _sut;
public CustomDateTimeConverterTests()
{
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/TypeConvertors/CustomDateTimeConverterTests.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 193 |
```smalltalk
using FluentAssertions;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq.Dynamic.Core.TypeConverters;
using Xunit;
#if !NET452
using static System.Linq.Dynamic.Core.Tests.TypeConvertors.NodaTimeConverterTests;
using NodaTime;
#endif
namespace System.Linq.Dynamic.Core.Tests.... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/TypeConvertors/TypeConverterFactoryTests.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 456 |
```smalltalk
using System.Collections.Generic;
using System.Linq.Dynamic.Core.CustomTypeProviders;
using System.Reflection;
using System.Runtime.CompilerServices;
namespace System.Linq.Dynamic.Core.Tests
{
public class TestCustomTypeProvider : AbstractDynamicLinqCustomTypeProvider, IDynamicLinkCustomTypeProvider
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/TestClasses/TestCustomTypeProvider.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 360 |
```smalltalk
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using System.Linq.Expressions;
namespace System.Linq.Dynamic.Core.Tests
{
public class StaticHelperSqlExpression
{
public Expression<Func<User, bool>>? Filter { get; set; }
}
}
``` | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/TestClasses/StaticHelperSqlExpression.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 52 |
```smalltalk
namespace System.Linq.Dynamic.Core.Tests
{
public class CustomClassWithStaticMethod
{
public static int GetAge(int x) => x;
}
}
``` | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/TestClasses/CustomClassWithStaticMethod.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 35 |
```smalltalk
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using System.Linq.Expressions;
namespace System.Linq.Dynamic.Core.Tests
{
public static class StaticHelper
{
public static Guid NewStaticGuid => new("43b17e59-2b66-4697-a3ab-7b45baedee72");
public static class Nested
{
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/TestClasses/StaticHelper.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 479 |
```smalltalk
namespace System.Linq.Dynamic.Core.Tests.Entities
{
public abstract class Entity : IEntity
{
public long Id { get; set; }
}
}
``` | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Entities/Entity.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 33 |
```smalltalk
namespace System.Linq.Dynamic.Core.Tests.Entities
{
public class BaseEmployee
{
public string Name { get; set; }
}
}
``` | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Entities/BaseEmployee.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 31 |
```smalltalk
using NFluent;
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using FluentAssertions;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class QueryableTests
{
[Fact]
public void Issue775a()
{
// Arrange
var users = User.GenerateSampleModels(10);
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Issues/Issue775.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 357 |
```smalltalk
using System.Collections.Generic;
namespace System.Linq.Dynamic.Core.Tests.Entities
{
public class Function : Entity
{
public string Code { get; set; }
public string Name { get; set; }
public ICollection<SubFunction> SubFunctions { get; set; }
public ICollection<... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Entities/Function.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 74 |
```smalltalk
using System.Collections.Generic;
namespace System.Linq.Dynamic.Core.Tests.Entities
{
public class Role : Entity
{
public string Name { get; set; }
public string Description { get; set; }
public ICollection<User> Users { get; set; }
}
}
``` | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Entities/Role.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 59 |
```smalltalk
using System.Collections.Generic;
namespace System.Linq.Dynamic.Core.Tests.Entities
{
public class Country : Entity
{
public string Code { get; set; }
public string Name { get; set; }
public ICollection<Employee> Employees { get; set; }
}
}
``` | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Entities/Country.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 59 |
```smalltalk
namespace System.Linq.Dynamic.Core.Tests.Entities
{
public class EmployeeWrapper
{
public BaseEmployee Employee { get; set; }
}
}
``` | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Entities/EmployeeWrapper.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 32 |
```smalltalk
namespace System.Linq.Dynamic.Core.Tests.Entities
{
public interface IEntity
{
long Id { get; set; }
}
}
``` | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Entities/IEntity.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 30 |
```smalltalk
namespace System.Linq.Dynamic.Core.Tests.Entities
{
public class Department
{
public BaseEmployee Employee { get; set; }
public BaseEmployee? NullableEmployee { get; set; }
}
}
``` | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Entities/Department.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 44 |
```smalltalk
using System.ComponentModel.DataAnnotations.Schema;
using Linq.PropertyTranslator.Core;
namespace System.Linq.Dynamic.Core.Tests.Entities
{
public class Employee : Entity
{
private static readonly CompiledExpressionMap<Employee, string> FullNameExpr =
DefaultTranslationOf<Emplo... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Entities/Employee.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 244 |
```smalltalk
using System.Collections.Generic;
namespace System.Linq.Dynamic.Core.Tests.Entities
{
public class CompanyWithBaseEmployees
{
public ICollection<BaseEmployee> Employees { get; set; }
}
}
``` | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Entities/CompanyWithBaseEmployees.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 41 |
```smalltalk
using System.Collections.Generic;
namespace System.Linq.Dynamic.Core.Tests.Entities
{
public class User : Entity
{
public string IdentityName { get; set; }
public string DisplayName { get; set; }
public string EmailAddress { get; set; }
public ICollection<Role> R... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Entities/User.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 94 |
```smalltalk
namespace System.Linq.Dynamic.Core.Tests.Entities
{
public class Product : Entity
{
public string Code { get; set; }
public string Name { get; set; }
}
}
``` | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Entities/Product.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 43 |
```smalltalk
namespace System.Linq.Dynamic.Core.Tests.Entities
{
public class Worker : BaseEmployee
{
public string Other { get; set; }
}
}
``` | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Entities/Worker.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 33 |
```smalltalk
using System.Collections.Generic;
namespace System.Linq.Dynamic.Core.Tests.Entities
{
public class SubFunction : Entity
{
public string Code { get; set; }
public string Name { get; set; }
public long? FunctionId { get; set; }
public Function Function { get; set; ... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Entities/SubFunction.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 82 |
```smalltalk
namespace System.Linq.Dynamic.Core.Tests.Entities
{
public class Boss : BaseEmployee
{
public string Function { get; set; }
}
}
``` | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Entities/Boss.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 33 |
```smalltalk
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
namespace System.Linq.Dynamic.Core.Tests.Entities
{
[Table("KendoGrid_MainCompany")]
public class MainCompany : Entity
{
public string Name { get; set; }
public ICollection<Company> Companies... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Entities/MainCompany.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 67 |
```smalltalk
using System.Collections.Generic;
namespace System.Linq.Dynamic.Core.Tests.Entities;
public class Company : Entity
{
public string Name { get; set; }
public long? MainCompanyId { get; set; }
public MainCompany MainCompany { get; set; }
public ICollection<Employee> Employees { get; set;... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Entities/Company.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 78 |
```smalltalk
namespace System.Linq.Dynamic.Core.Tests.Entities
{
public class OU : Entity
{
public string Code { get; set; }
public string Name { get; set; }
}
}
``` | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Entities/OU.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 43 |
```smalltalk
using System.Linq.Expressions;
using System.Reflection;
namespace System.Linq.Dynamic.Core.Tests.Helpers
{
public static class ExpressionExtensions
{
public static string ToDebugView(this Expression exp)
{
if (exp == null)
{
return null;
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Helpers/ExpressionExtensions.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 91 |
```smalltalk
using System.Linq.Dynamic.Core.CustomTypeProviders;
namespace System.Linq.Dynamic.Core.Tests.Helpers
{
[DynamicLinqType]
public enum TestEnum
{
Var1 = 0,
Var2 = 1,
Var3 = 2,
Var4 = 4,
Var5 = 8,
Var6 = 16,
}
}
``` | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Helpers/TestEnum.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 79 |
```smalltalk
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace System.Linq.Dynamic.Core.Tests.Helpers.Entities;
public class Blog
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.None)]
public int BlogId { get; se... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Helpers/Entities/Blog.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 133 |
```smalltalk
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace System.Linq.Dynamic.Core.Tests.Helpers.Entities;
public class Post
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.None)]
public int PostId { get; set; }
public string Title { ge... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Helpers/Entities/Post.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 116 |
```smalltalk
#if EFCORE
using System.Linq.Dynamic.Core.Tests.Logging;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.Extensions.DependencyInjection;
#else
using System.Data.Entity;
#endif
namespace System.Linq.Dynamic.Core.Te... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Helpers/Entities/BlogContext.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 353 |
```smalltalk
namespace System.Linq.Dynamic.Core.Tests.Helpers.Models
{
public class Person
{
public int Id { get; set; }
public int? NullableId { get; set; }
public string Name { get; set; }
public DateTime D { get; set; }
public DateTimeOffset O { get; set; }
}
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Helpers/Models/Person.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 74 |
```smalltalk
namespace System.Linq.Dynamic.Core.Tests.Helpers.Models
{
public class SpecialPet : Pet
{
public bool IsSpecial { get; set; }
}
}
``` | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Helpers/Models/SpecialPet.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 36 |
```smalltalk
using System.Collections.Generic;
namespace System.Linq.Dynamic.Core.Tests.Helpers.Models
{
public class Role
{
public static readonly Role[] StandardRoles = {
new Role { Name="Admin", Permissions = new List<Permission> { new Permission { Name = "Admin" } } },
new R... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Helpers/Models/Role.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 247 |
```smalltalk
namespace System.Linq.Dynamic.Core.Tests.Helpers.Models;
public readonly struct BooleanVariable : IEquatable<bool>, IEquatable<BooleanVariable>, IConvertible
{
private readonly bool _innerValue;
public BooleanVariable(bool innerValue)
{
_innerValue = innerValue;
}
public over... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Helpers/Models/BooleanVariable.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 898 |
```smalltalk
namespace System.Linq.Dynamic.Core.Tests.Helpers.Models
{
public class Methods
{
public bool Method1(int value)
{
return value == 1;
}
public bool Method2(object value)
{
return value != null && (int)value == 1;
}
pub... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Helpers/Models/Methods.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 216 |
```smalltalk
namespace System.Linq.Dynamic.Core.Tests.Helpers.Models
{
public class UserProfileDetails
{
public long Id { get; set; }
private long Id2 { get; set; }
}
}
``` | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Helpers/Models/UserProfileDetails.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 43 |
```smalltalk
namespace System.Linq.Dynamic.Core.Tests.Helpers.Models
{
public class Permission
{
public string Name { get; set; }
}
}
``` | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Helpers/Models/Permission.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 32 |
```smalltalk
namespace System.Linq.Dynamic.Core.Tests.Helpers.Models
{
public class ModelWithEnum
{
public string Name { get; set; }
public TestEnum TestEnum { get; set; }
}
}
``` | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Helpers/Models/ModelWithEnum.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 46 |
```smalltalk
using System.Linq.Dynamic.Core.CustomTypeProviders;
namespace System.Linq.Dynamic.Core.Tests.Helpers.Models
{
public enum SimpleValuesModelEnum
{
A,
B
}
[DynamicLinqType]
public enum SimpleValuesModelEnumAsDynamicLinqType
{
A,
B
}
public cl... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Helpers/Models/SimpleValuesModel.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 197 |
```smalltalk
namespace System.Linq.Dynamic.Core.Tests.Helpers.Models
{
public class UserProfile
{
public string FirstName { get; set; }
public string LastName { get; set; }
public int? Age { get; set; }
public UserProfileDetails UserProfileDetails { get; set; }
}
}
``` | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Helpers/Models/UserProfile.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 64 |
```smalltalk
using System.Collections.Generic;
namespace System.Linq.Dynamic.Core.Tests.Helpers.Models;
public class User
{
public bool UserInfo { get; set; }
public Guid Id { get; set; }
public Guid? ParentId { get; set; }
public Guid? LegalPersonId { get; set; }
public Guid? PointSiteTD { ge... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Helpers/Models/User.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 605 |
```smalltalk
namespace System.Linq.Dynamic.Core.Tests.Helpers.Models;
public static class UserInfo
{
public static Guid Key => new("43b17e59-2b66-4697-a3ab-7b45baedee72");
}
``` | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Helpers/Models/UserInfo.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 49 |
```smalltalk
namespace System.Linq.Dynamic.Core.Tests.Helpers.Models
{
public class Pet
{
public int Id { get; set; }
public string Name { get; set; }
public Person Owner { get; set; }
public int OwnerId { get; set; }
public int? NullableOwnerId { get; set; }
}
}
``` | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Helpers/Models/Pet.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 75 |
```smalltalk
namespace System.Linq.Dynamic.Core.Tests.Helpers.Models
{
public class UserState
{
public Guid StatusCode { get; set; }
public string Description { get; set; }
public static implicit operator Guid(UserState state) => state?.StatusCode ?? Guid.Empty;
}
}
``` | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Helpers/Models/UserState.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 60 |
```smalltalk
namespace System.Linq.Dynamic.Core.Tests.Helpers.Models
{
public struct SnowflakeId : IEquatable<SnowflakeId>
{
public bool Equals(SnowflakeId other)
{
return Value == other.Value;
}
public override bool Equals(object obj)
{
return ob... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Helpers/Models/SnowflakeId.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 279 |
```smalltalk
using System.Reflection;
using Xunit.Sdk;
namespace System.Linq.Dynamic.Core.Tests.TestHelpers
{
#if !NET452
class DisplayTestMethodNameAttribute : BeforeAfterTestAttribute
{
public override void Before(MethodInfo methodUnderTest)
{
Console.WriteLine("Setup for test '{0... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/TestHelpers/DisplayTestMethodNameAttribute.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 105 |
```smalltalk
using Xunit;
namespace System.Linq.Dynamic.Core.Tests.TestHelpers;
internal class SkipIfGitHubActionsAttribute : FactAttribute
{
public SkipIfGitHubActionsAttribute()
{
if (IsRunningOnGitHubActions())
{
// ReSharper disable once VirtualMemberCallInConstructor
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/TestHelpers/SkipIfGitHubActionsAttribute.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 325 |
```smalltalk
#if EFCORE
using Microsoft.EntityFrameworkCore.Storage.Internal;
using Microsoft.Extensions.Logging;
#if EFCORE_3X
using Microsoft.EntityFrameworkCore.Storage;
#endif
namespace System.Linq.Dynamic.Core.Tests.Logging
{
public class DbLoggerProvider : ILoggerProvider
{
private static readon... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Logging/DbLoggerProvider.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 135 |
```smalltalk
#if EFCORE
using Microsoft.Extensions.Logging;
namespace System.Linq.Dynamic.Core.Tests.Logging
{
public class DbLogger : ILogger
{
public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
{
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Logging/DbLogger.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 136 |
```smalltalk
#if EFCORE
using Microsoft.Extensions.Logging;
namespace System.Linq.Dynamic.Core.Tests.Logging
{
internal class NullLogger : ILogger
{
public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
{
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Logging/NullLogger.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 107 |
```smalltalk
using NFluent;
using System.Globalization;
using System.Linq.Dynamic.Core.Exceptions;
using System.Linq.Dynamic.Core.Tokenizer;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests.Tokenizer
{
public class TextParserTests
{
private readonly ParsingConfig _config = new ParsingConfig();
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Tokenizer/TextParserTests.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 1,859 |
```smalltalk
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq.Expressions;
using FluentAssertions;
using NFluent;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests.MikArea
{
public class Dictionary
{
public class Customer
{
public string ... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/MikArea/Dictionary.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 1,104 |
```smalltalk
using NFluent;
using System.Linq.Dynamic.Core.Util;
using System.Linq.Expressions;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests.Util
{
public class ParameterExpressionRenamerTests
{
[Theory]
[InlineData("test", "(test + 42)")]
public void ParameterExpressionRenamer... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Util/ParameterExpressionRenamerTests.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 412 |
```smalltalk
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Linq.Expressions;
using NFluent;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests.MikArea
{
public class Comparer
{
public class Customer
{
public string City { ge... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/MikArea/Comparer.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 1,452 |
```smalltalk
using System.Linq.Dynamic.Core.Parser;
using FluentAssertions;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests.Parser;
public class WrappedValueTests
{
[Fact]
public void WrappedValue_OfTypeString_OperatorEquals_String()
{
// Arrange
var wrapped = new WrappedValue<string... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Parser/WrappedValueTests.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 578 |
```smalltalk
using Moq;
using System.Linq.Dynamic.Core.Util;
using System.Linq.Dynamic.Core.Util.Cache;
using System.Linq.Expressions;
using System.Threading;
using FluentAssertions;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests.Util.Cache;
public class SlidingCacheTests
{
private static readonly DateTime... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Util/Cache/SlidingCacheTests.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 1,465 |
```smalltalk
using NFluent;
using System.Linq.Dynamic.Core.Parser;
using System.Linq.Expressions;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests.Parser
{
public class ParameterExpressionHelperTests
{
[Theory]
[InlineData(typeof(int), "it", "x", "x", false)]
[InlineData(typeof(int... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Parser/ParameterExpressionHelperTests.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 2,587 |
```smalltalk
using System.Linq.Dynamic.Core.Parser;
using FluentAssertions;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests.Parser;
public class PredefinedTypesHelperTests
{
[Fact]
public void IsPredefinedType_ShouldReturnFalse_ForNonPredefinedTypes()
{
// Arrange
var config = new Pa... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Parser/PredefinedTypesHelperTests.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 185 |
```smalltalk
using System.Collections.Generic;
using System.Linq.Dynamic.Core.CustomTypeProviders;
using System.Linq.Dynamic.Core.Exceptions;
using System.Linq.Dynamic.Core.Parser;
using System.Linq.Dynamic.Core.Tests.Entities;
using System.Linq.Expressions;
using FluentAssertions;
using Moq;
using NFluent;
using Xunit... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Parser/ExpressionParserTests.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 3,297 |
```smalltalk
using System.Linq.Dynamic.Core.CustomTypeProviders;
using FluentAssertions;
using NFluent;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests.Parser
{
[DynamicLinqType]
public static class Utils
{
public static string[] ConvertToArray(params string[] values)
{
if... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Parser/DynamicLinqTypeTest.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 1,426 |
```smalltalk
using FluentAssertions;
using System.Collections.Generic;
using System.Globalization;
using System.Linq.Dynamic.Core.Parser;
using System.Linq.Expressions;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests.Parser;
public class NumberParserTests
{
private readonly ParsingConfig _parsingConfig = ne... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Parser/NumberParserTests.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 1,662 |
```smalltalk
using FluentAssertions;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests.Parser
{
partial class ExpressionParserTests
{
[Fact]
public void ParseMemberAccess_DictionaryIndex_On_Dynamic()
{
// Arrange
var products = new ProductDynamic[0].AsQueryab... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Parser/ExpressionParserTests.MemberAccess.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 212 |
```smalltalk
using System.Linq.Dynamic.Core.Exceptions;
using System.Linq.Dynamic.Core.Parser;
using FluentAssertions;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests.Parser;
public class StringParserTests
{
[Theory]
[InlineData("'s")]
[InlineData("\"s")]
public void your_sha256_hashg_ThrowsExce... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Parser/StringParserTests.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 990 |
```smalltalk
using Moq;
using System.Collections.Generic;
using System.Linq.Dynamic.Core.CustomTypeProviders;
using System.Linq.Dynamic.Core.Parser;
using System.Linq.Expressions;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests.Parser
{
public class ExpressionPromoterTests
{
public class SampleDt... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Parser/ExpressionPromoterTests.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 462 |
```smalltalk
using Moq;
using NFluent;
using System.Linq.Dynamic.Core.CustomTypeProviders;
using System.Linq.Dynamic.Core.Parser;
using System.Linq.Dynamic.Core.Tests.Entities;
using System.Linq.Expressions;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests.Parser
{
public class TypeFinderTests
{
p... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Parser/TypeFinderTests.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 530 |
```smalltalk
using NFluent;
using System.Linq.Dynamic.Core.Parser;
using System.Linq.Expressions;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests.Parser
{
public class ConstantExpressionWrapperTests
{
private readonly IConstantExpressionWrapper _constantExpressionWrapper;
public Constant... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Parser/ConstantExpressionWrapperTests.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 495 |
```smalltalk
using FluentAssertions;
using NFluent;
using System.Collections;
using System.Linq.Dynamic.Core.Parser;
using System.Linq.Expressions;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests.Parser;
public class ExpressionHelperTests
{
private readonly ExpressionHelper _sut;
public ExpressionHelpe... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Parser/ExpressionHelperTests.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 1,836 |
```smalltalk
using System.Linq.Dynamic.Core.Parser;
using FluentAssertions;
using NFluent;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests.Parser;
public class TypeHelperTests
{
enum TestEnum
{
x = 1
}
[Fact]
public void TypeHelper_TryParseEnum_Valid()
{
// Assign + Act
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Parser/TypeHelperTests.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 338 |
```smalltalk
using System.Linq.Dynamic.Core.Parser;
using System.Linq.Expressions;
using Xunit;
using static System.Linq.Expressions.Expression;
namespace System.Linq.Dynamic.Core.Tests.Parser;
public class MethodFinderTest
{
[Fact]
public void MethodsOfDynamicLinqAndSystemLinqShouldBeEqual()
{
Ex... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Parser/MethodFinderTest.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 159 |
```xml
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<AssemblyName>System.Linq.Dynamic.Core.Tests</AssemblyName>
<DebugType>full</DebugType>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>../../src/System.Linq.Dynam... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests.Net7/System.Linq.Dynamic.Core.Tests.Net7.csproj | xml | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 760 |
```smalltalk
using System.Collections.Generic;
using System.Linq.Dynamic.Core.Exceptions;
using System.Linq.Dynamic.Core.Parser;
using System.Linq.Expressions;
using FluentAssertions;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests.Parser;
partial class ExpressionParserTests
{
[Fact]
public void ParseTy... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/Parser/ExpressionParserTests.TypeAccess.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 1,815 |
```xml
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
<PropertyGroup>
<Authors>Stef Heyenrath</Authors>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AssemblyName>System.Linq.Dynamic.Core.Tests</AssemblyName>
<DebugType>full</DebugType>
<SignAssembly>True</SignAsse... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests.NetCoreApp31/System.Linq.Dynamic.Core.Tests.NetCoreApp31.csproj | xml | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 796 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.