/*
 * OpenAPI Petstore
 *
 * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
 *
 * The version of the OpenAPI document: 1.0.0
 * Generated by: https://github.com/openapitools/openapi-generator.git
 */

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Xunit;
using Microsoft.Extensions.DependencyInjection;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Model;


/* *********************************************************************************
*              Follow these manual steps to construct tests.
*              This file will not be overwritten.
*  *********************************************************************************
* 1. Navigate to ApiTests.Base.cs and ensure any tokens are being created correctly.
*    Take care not to commit credentials to any repository.
*
* 2. Mocking is coordinated by ApiTestsBase#AddApiHttpClients.
*    To mock the client, use the generic AddApiHttpClients.
*    To mock the server, change the client's BaseAddress.
*
* 3. Locate the test you want below
*      - remove the skip property from the Fact attribute
*      - set the value of any variables if necessary
*
* 4. Run the tests and ensure they work.
*
*/


namespace Org.OpenAPITools.Test.Api
{
    /// <summary>
    ///  Class for testing DefaultApi
    /// </summary>
    public sealed class DefaultApiTests : ApiTestsBase
    {
        private readonly IDefaultApi _instance;

        public DefaultApiTests(): base(Array.Empty<string>())
        {
            _instance = _host.Services.GetRequiredService<IDefaultApi>();
        }

        /// <summary>
        /// Test FooGet
        /// </summary>
        [Fact (Skip = "not implemented")]
        public async Task FooGetAsyncTest()
        {
            var response = await _instance.FooGetAsync();
            var model = response.Default();
            Assert.IsType<FooGetDefaultResponse>(model);
        }

        /// <summary>
        /// Test GetCountry
        /// </summary>
        [Fact (Skip = "not implemented")]
        public async Task GetCountryAsyncTest()
        {
            string country = default!;
            await _instance.GetCountryAsync(country);
        }

        /// <summary>
        /// Test Hello
        /// </summary>
        [Fact (Skip = "not implemented")]
        public async Task HelloAsyncTest()
        {
            var response = await _instance.HelloAsync();
            var model = response.Ok();
            Assert.IsType<List<Guid>>(model);
        }

        /// <summary>
        /// Test RolesReportGet
        /// </summary>
        [Fact (Skip = "not implemented")]
        public async Task RolesReportGetAsyncTest()
        {
            var response = await _instance.RolesReportGetAsync();
            var model = response.Ok();
            Assert.IsType<List<List<RolesReportsHash>>>(model);
        }

        /// <summary>
        /// Test Test
        /// </summary>
        [Fact (Skip = "not implemented")]
        public async Task TestAsyncTest()
        {
            var response = await _instance.TestAsync();
            var model = response.Ok();
            Assert.IsType<NotificationtestGetElementsV1ResponseMPayload>(model);
        }
    }
}
