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); }
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); }