mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 09:59:48 -05:00
* Add linting for copyright and unused usings * Add one more + comment * Enforce in build and fix errors * Fix build
83 lines
2.4 KiB
C#
83 lines
2.4 KiB
C#
//
|
|
// Copyright (c) Microsoft. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
//
|
|
|
|
using System;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.SqlTools.Extensibility;
|
|
using Microsoft.SqlTools.ResourceProvider.Core.Authentication;
|
|
using Microsoft.SqlTools.ResourceProvider.Core.Extensibility;
|
|
|
|
namespace Microsoft.SqlTools.ServiceLayer.UnitTests.ResourceProvider.Fakes
|
|
{
|
|
[Exportable("SqlServer", "Network",
|
|
typeof(IAccountManager), "Microsoft.SqlTools.ServiceLayer.UnitTests.ResourceProvider.Fakes.FakeAccountManager2", 2)]
|
|
public class FakeAccountManager2 : IAccountManager
|
|
{
|
|
public FakeAccountManager2(IExportableMetadata metadata)
|
|
{
|
|
Metadata = metadata;
|
|
}
|
|
|
|
public ITrace Trace { get; set; }
|
|
public Task<bool> GetUserNeedsReauthenticationAsync()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public Task<IUserAccount> AuthenticateAsync()
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public bool IsCachExpired { get; private set; }
|
|
public bool SessionIsCached { get; private set; }
|
|
public void ResetSession()
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public Task<IUserAccount> AddUserAccountAsync()
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public Task<IUserAccount> SetCurrentAccountAsync(object account)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public Task<IUserAccount> SetCurrentAccountFromLoginDialogAsync()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public Task<IUserAccount> GetCurrentAccountAsync()
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public bool HasLoginDialog { get; }
|
|
|
|
public event EventHandler CurrentAccountChanged;
|
|
|
|
public IUserAccount SetCurrentAccount(object account)
|
|
{
|
|
if (CurrentAccountChanged != null)
|
|
{
|
|
CurrentAccountChanged(this, null);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public void SetServiceProvider(IMultiServiceProvider provider)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public IExportableMetadata Metadata { get; set; }
|
|
public ExportableStatus Status { get; }
|
|
}
|
|
}
|