/*
 *    The contents of this file are subject to the Initial
 *    Developer's Public License Version 1.0 (the "License");
 *    you may not use this file except in compliance with the
 *    License. You may obtain a copy of the License at
 *    https://github.com/FirebirdSQL/NETProvider/raw/master/license.txt.
 *
 *    Software distributed under the License is distributed on
 *    an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
 *    express or implied. See the License for the specific
 *    language governing rights and limitations under the License.
 *
 *    All Rights Reserved.
 */

//$Authors = Jiri Cincura (jiri@cincura.net)

using System.Threading.Tasks;
using FirebirdSql.EntityFrameworkCore.Firebird.FunctionalTests.Helpers;
using Microsoft.EntityFrameworkCore.Query;
using Xunit;

namespace FirebirdSql.EntityFrameworkCore.Firebird.FunctionalTests.Query;

public class ComplexNavigationsCollectionsQueryFbTest : ComplexNavigationsCollectionsQueryRelationalTestBase<ComplexNavigationsQueryFbFixture>
{
	public ComplexNavigationsCollectionsQueryFbTest(ComplexNavigationsQueryFbFixture fixture)
		: base(fixture)
	{ }

	[NotSupportedOnFirebirdTheory]
	[MemberData(nameof(IsAsyncData))]
	public override Task Complex_query_issue_21665(bool async)
	{
		return base.Complex_query_issue_21665(async);
	}

	[NotSupportedOnFirebirdTheory]
	[MemberData(nameof(IsAsyncData))]
	public override Task Complex_query_with_let_collection_projection_FirstOrDefault(bool async)
	{
		return base.Complex_query_with_let_collection_projection_FirstOrDefault(async);
	}

	[NotSupportedOnFirebirdTheory]
	[MemberData(nameof(IsAsyncData))]
	public override Task Complex_query_with_let_collection_projection_FirstOrDefault_with_ToList_on_inner_and_outer(bool async)
	{
		return base.Complex_query_with_let_collection_projection_FirstOrDefault_with_ToList_on_inner_and_outer(async);
	}

	[NotSupportedOnFirebirdTheory]
	[MemberData(nameof(IsAsyncData))]
	public override Task Filtered_include_after_different_filtered_include_different_level(bool async)
	{
		return base.Filtered_include_after_different_filtered_include_different_level(async);
	}

	[NotSupportedOnFirebirdTheory]
	[MemberData(nameof(IsAsyncData))]
	public override Task Filtered_include_and_non_filtered_include_followed_by_then_include_on_same_navigation(bool async)
	{
		return base.Filtered_include_and_non_filtered_include_followed_by_then_include_on_same_navigation(async);
	}

	[NotSupportedOnFirebirdTheory]
	[MemberData(nameof(IsAsyncData))]
	public override Task Filtered_include_complex_three_level_with_middle_having_filter1(bool async)
	{
		return base.Filtered_include_complex_three_level_with_middle_having_filter1(async);
	}

	[NotSupportedOnFirebirdTheory]
	[MemberData(nameof(IsAsyncData))]
	public override Task Filtered_include_complex_three_level_with_middle_having_filter2(bool async)
	{
		return base.Filtered_include_complex_three_level_with_middle_having_filter2(async);
	}

	[NotSupportedOnFirebirdTheory]
	[MemberData(nameof(IsAsyncData))]
	public override Task Filtered_include_multiple_multi_level_includes_with_first_level_using_filter_include_on_one_of_the_chains_only(bool async)
	{
		return base.Filtered_include_multiple_multi_level_includes_with_first_level_using_filter_include_on_one_of_the_chains_only(async);
	}

	[NotSupportedOnFirebirdTheory]
	[MemberData(nameof(IsAsyncData))]
	public override Task Filtered_include_outer_parameter_used_inside_filter(bool async)
	{
		return base.Filtered_include_outer_parameter_used_inside_filter(async);
	}

	[NotSupportedOnFirebirdTheory]
	[MemberData(nameof(IsAsyncData))]
	public override Task Filtered_include_same_filter_set_on_same_navigation_twice_followed_by_ThenIncludes(bool async)
	{
		return base.Filtered_include_same_filter_set_on_same_navigation_twice_followed_by_ThenIncludes(async);
	}

	[NotSupportedOnFirebirdTheory]
	[MemberData(nameof(IsAsyncData))]
	public override Task Filtered_include_Skip_Take_with_another_Skip_Take_on_top_level(bool async)
	{
		return base.Filtered_include_Skip_Take_with_another_Skip_Take_on_top_level(async);
	}

	[NotSupportedOnFirebirdTheory]
	[MemberData(nameof(IsAsyncData))]
	public override Task Filtered_include_with_Take_without_order_by_followed_by_ThenInclude_and_FirstOrDefault_on_top_level(bool async)
	{
		return base.Filtered_include_with_Take_without_order_by_followed_by_ThenInclude_and_FirstOrDefault_on_top_level(async);
	}

	[NotSupportedOnFirebirdTheory]
	[MemberData(nameof(IsAsyncData))]
	public override Task Include_inside_subquery(bool async)
	{
		return base.Include_inside_subquery(async);
	}

	[NotSupportedOnFirebirdTheory]
	[MemberData(nameof(IsAsyncData))]
	public override Task Projecting_collection_after_optional_reference_correlated_with_parent(bool async)
	{
		return base.Projecting_collection_after_optional_reference_correlated_with_parent(async);
	}

	[NotSupportedOnFirebirdTheory]
	[MemberData(nameof(IsAsyncData))]
	public override Task Projecting_collection_with_group_by_after_optional_reference_correlated_with_parent(bool async)
	{
		return base.Projecting_collection_with_group_by_after_optional_reference_correlated_with_parent(async);
	}

	[NotSupportedOnFirebirdTheory]
	[MemberData(nameof(IsAsyncData))]
	public override Task SelectMany_with_predicate_and_DefaultIfEmpty_projecting_root_collection_element_and_another_collection(bool async)
	{
		return base.SelectMany_with_predicate_and_DefaultIfEmpty_projecting_root_collection_element_and_another_collection(async);
	}

	[NotSupportedOnFirebirdTheory]
	[MemberData(nameof(IsAsyncData))]
	public override Task Skip_Take_Distinct_on_grouping_element(bool async)
	{
		return base.Skip_Take_Distinct_on_grouping_element(async);
	}

	[NotSupportedOnFirebirdTheory]
	[MemberData(nameof(IsAsyncData))]
	public override Task Skip_Take_on_grouping_element_inside_collection_projection(bool async)
	{
		return base.Skip_Take_on_grouping_element_inside_collection_projection(async);
	}

	[NotSupportedOnFirebirdTheory]
	[MemberData(nameof(IsAsyncData))]
	public override Task Skip_Take_on_grouping_element_with_collection_include(bool async)
	{
		return base.Skip_Take_on_grouping_element_with_collection_include(async);
	}

	[NotSupportedOnFirebirdTheory]
	[MemberData(nameof(IsAsyncData))]
	public override Task Skip_Take_on_grouping_element_with_reference_include(bool async)
	{
		return base.Skip_Take_on_grouping_element_with_reference_include(async);
	}

	[NotSupportedOnFirebirdTheory]
	[MemberData(nameof(IsAsyncData))]
	public override Task Skip_Take_Select_collection_Skip_Take(bool async)
	{
		return base.Skip_Take_Select_collection_Skip_Take(async);
	}

	[NotSupportedOnFirebirdTheory]
	[MemberData(nameof(IsAsyncData))]
	public override Task Take_Select_collection_Take(bool async)
	{
		return base.Take_Select_collection_Take(async);
	}

	[NotSupportedOnFirebirdTheory]
	[MemberData(nameof(IsAsyncData))]
	public override Task Filtered_include_with_Take_without_order_by_followed_by_ThenInclude_and_unordered_Take_on_top_level(bool async)
	{
		return base.Filtered_include_with_Take_without_order_by_followed_by_ThenInclude_and_unordered_Take_on_top_level(async);
	}

	[NotSupportedOnFirebirdTheory]
	[MemberData(nameof(IsAsyncData))]
	public override Task Filtered_include_Take_with_another_Take_on_top_level(bool async)
	{
		return base.Filtered_include_Take_with_another_Take_on_top_level(async);
	}
}
