/*
 * API ubs_v1 1.0.0
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * 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 HealthGet
        /// </summary>
        [Fact (Skip = "not implemented")]
        public async Task HealthGetAsyncTest()
        {
            var response = await _instance.HealthGetAsync();
            var model = response.Ok();
            Assert.IsType<string>(model);
        }

        /// <summary>
        /// Test ModelGet
        /// </summary>
        [Fact (Skip = "not implemented")]
        public async Task ModelGetAsyncTest()
        {
            Client.Option<string> name = default!;
            var response = await _instance.ModelGetAsync(name);
            var model = response.Ok();
            Assert.IsType<Model>(model);
        }

        /// <summary>
        /// Test ModelIdDelete
        /// </summary>
        [Fact (Skip = "not implemented")]
        public async Task ModelIdDeleteAsyncTest()
        {
            int id = default!;
            await _instance.ModelIdDeleteAsync(id);
        }

        /// <summary>
        /// Test ModelIdGet
        /// </summary>
        [Fact (Skip = "not implemented")]
        public async Task ModelIdGetAsyncTest()
        {
            int id = default!;
            var response = await _instance.ModelIdGetAsync(id);
            var model = response.Ok();
            Assert.IsType<Model>(model);
        }

        /// <summary>
        /// Test ModelIdValuesGet
        /// </summary>
        [Fact (Skip = "not implemented")]
        public async Task ModelIdValuesGetAsyncTest()
        {
            int id = default!;
            var response = await _instance.ModelIdValuesGetAsync(id);
            var model = response.Ok();
            Assert.IsType<List<Measurement>>(model);
        }

        /// <summary>
        /// Test ModelIdValuesPut
        /// </summary>
        [Fact (Skip = "not implemented")]
        public async Task ModelIdValuesPutAsyncTest()
        {
            int id = default!;
            Client.Option<List<Measurement>> measurement = default!;
            await _instance.ModelIdValuesPutAsync(id, measurement);
        }

        /// <summary>
        /// Test ModelListGet
        /// </summary>
        [Fact (Skip = "not implemented")]
        public async Task ModelListGetAsyncTest()
        {
            var response = await _instance.ModelListGetAsync();
            var model = response.Ok();
            Assert.IsType<List<Model>>(model);
        }

        /// <summary>
        /// Test ModelPut
        /// </summary>
        [Fact (Skip = "not implemented")]
        public async Task ModelPutAsyncTest()
        {
            Client.Option<Model> model = default!;
            var response = await _instance.ModelPutAsync(model);
            var model = response.Ok();
            Assert.IsType<Model>(model);
        }
    }
}
