// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // #nullable disable using System.Threading.Tasks; using Microsoft.SqlTools.ResourceProvider.Core; using Microsoft.SqlTools.ResourceProvider.Core.Extensibility; namespace Microsoft.SqlTools.ServiceLayer.UnitTests.ResourceProvider.Fakes { [Exportable(ServerTypeValue, CategoryValue , typeof(IServerDiscoveryProvider), "Microsoft.SqlTools.ServiceLayer.UnitTests.ResourceProvider.Fakes.FakeServerDiscoveryProvider")] public class FakeServerDiscoveryProvider : ExportableBase, IServerDiscoveryProvider { public FakeServerDiscoveryProvider(IExportableMetadata metadata) { Metadata = metadata; } public async Task> GetServerInstancesAsync() { return await Task.Run(() => new ServiceResponse()); } public IDatabaseResourceManager DatabaseResourceManager { get; set; } public const string ServerTypeValue = "FakeServerType"; public const string CategoryValue = "FakeCategory"; } }