Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

RandomTests.cs 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using Xunit;
  2. namespace Luticate2.Auth.Tests
  3. {
  4. public class RandomTests
  5. {
  6. // [Fact]
  7. // public void Test1()
  8. // {
  9. // var dbContext = new luticate2Context();
  10. // var items = dbContext.LuGroups.Where(groups => groups.LuGroupsObjects.Any(x => x.Priority == 0));
  11. // var list = items.ToList();
  12. // Assert.NotNull(list);
  13. // Assert.Equal(1, list.Count);
  14. // }
  15. //
  16. // [Fact]
  17. // public void Test2()
  18. // {
  19. // var dbContext = new luticate2Context();
  20. // var items = dbContext.LuGroups.OrderBy(x => x.Id).Where(groups => groups.LuGroupsObjects.Any(x => x.Priority == 0));
  21. // var list = items.ToList();
  22. // Assert.NotNull(list);
  23. // Assert.Equal(1, list.Count);
  24. // }
  25. //
  26. // [Fact]
  27. // public void Test3()
  28. // {
  29. // var dbContext = new luticate2Context();
  30. // var items = dbContext.LuGroups.OrderBy(x => x.Id);
  31. // var list = items.ToList();
  32. // Assert.NotNull(list);
  33. // Assert.Equal(2, list.Count);
  34. // }
  35. // protected void AddILuExpressionConverter<TTypeFrom, TTypeTo, TTypeImpl>(IServiceCollection services)
  36. // where TTypeImpl : class, ILuExpressionConverter<TTypeFrom, TTypeTo>
  37. // {
  38. // services.AddSingleton<ILuExpressionConverter<TTypeFrom, TTypeTo>, TTypeImpl>();
  39. // services.TryAddSingleton<ILuExpressionConverter<TTypeFrom>, TTypeImpl>();
  40. // }
  41. [Fact]
  42. public void Test()
  43. {
  44. // var parentScopeVar = new TestDbo1();
  45. // Expression<Func<TestDbo2, Guid>> expDbo = (x => parentScopeVar.Id);
  46. // var type = typeof(ILuObjectConverterDescriptor<,>);
  47. // var gtype = type.MakeGenericType(typeof(int), typeof(Enumerable));
  48. }
  49. }
  50. }