Пример #1
0
 public override async Task Include_property_after_navigation(bool async)
 {
     Assert.Contains(
         CoreResources.LogInvalidIncludePath(new TestLogger <TestLoggingDefinitions>())
         .GenerateMessage("Customer.CustomerID", "CustomerID"),
         (await Assert.ThrowsAsync <InvalidOperationException>(
              () => AssertQuery(
                  async,
                  ss => ss.Set <Order>().Include(o => o.Customer.CustomerID)))).Message);
 }
Пример #2
0
 public virtual async Task Include_non_existing_navigation(bool async)
 {
     Assert.Contains(
         CoreResources.LogInvalidIncludePath(new TestLogger <TestLoggingDefinitions>())
         .GenerateMessage("ArcticMonkeys", "ArcticMonkeys"),
         (await Assert.ThrowsAsync <InvalidOperationException>(
              () => AssertQuery(
                  async,
                  ss => ss.Set <Order>().Include("ArcticMonkeys")))).Message);
 }