//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//

using System.Threading.Tasks;
using Microsoft.SqlTools.ResourceProvider.Core;
using Microsoft.SqlTools.ResourceProvider.Core.Extensibility;

namespace Microsoft.SqlTools.ServiceLayer.UnitTests.ResourceProvider.Fakes
{   
    public class FakeServerDiscoveryProvider2 : ExportableBase, IServerDiscoveryProvider
    {
        public FakeServerDiscoveryProvider2(IExportableMetadata metadata)
        {
            Metadata = metadata;
        }

        public async Task<ServiceResponse<ServerInstanceInfo>> GetServerInstancesAsync()
        {
            return await Task.Run(() => new ServiceResponse<ServerInstanceInfo>());
        }
      
        
        public IDatabaseResourceManager DatabaseResourceManager
        {
            get;
            set;
        }

        public const string ServerTypeValue = "FakeServerType";
        public const string CategoryValue = "FakeCategory";
    }
}

