Had to remove the responsibility of providing the current version of the application from UpdateService. A new IVersionProvider can be used to get the version. This also allows for this to be mocked in tests.
16 lines
No EOL
287 B
C#
16 lines
No EOL
287 B
C#
namespace LANCommander.Server.Tests;
|
|
|
|
public class ClientFixture : IDisposable
|
|
{
|
|
public SDK.Client Client { get; set; }
|
|
|
|
public ClientFixture()
|
|
{
|
|
Client = new SDK.Client("", "C:\\Games");
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Client.Disconnect();
|
|
}
|
|
} |