Code inspections
This commit is contained in:
@@ -49,7 +49,11 @@ namespace Meade.net.Telescope.UnitTests
|
|||||||
_sharedResourcesWrapperMock.Setup(x => x.Lock(It.IsAny<Func<ASCOM.Meade.net.Telescope.TelescopeDateDetails>>())).Returns<Func<ASCOM.Meade.net.Telescope.TelescopeDateDetails>>( func => func());
|
_sharedResourcesWrapperMock.Setup(x => x.Lock(It.IsAny<Func<ASCOM.Meade.net.Telescope.TelescopeDateDetails>>())).Returns<Func<ASCOM.Meade.net.Telescope.TelescopeDateDetails>>( func => func());
|
||||||
_sharedResourcesWrapperMock.Setup(x => x.Lock(It.IsAny<Func<AltitudeData>>())).Returns<Func<AltitudeData>>(func => func());
|
_sharedResourcesWrapperMock.Setup(x => x.Lock(It.IsAny<Func<AltitudeData>>())).Returns<Func<AltitudeData>>(func => func());
|
||||||
|
|
||||||
_connectionInfo = new ConnectionInfo {Connections = 1, SameDevice = 1};
|
_connectionInfo = new ConnectionInfo
|
||||||
|
{
|
||||||
|
//Connections = 1,
|
||||||
|
SameDevice = 1
|
||||||
|
};
|
||||||
|
|
||||||
_sharedResourcesWrapperMock.Setup(x => x.Connect("Serial", It.IsAny<string>())).Returns( () => _connectionInfo );
|
_sharedResourcesWrapperMock.Setup(x => x.Connect("Serial", It.IsAny<string>())).Returns( () => _connectionInfo );
|
||||||
|
|
||||||
@@ -831,7 +835,7 @@ namespace Meade.net.Telescope.UnitTests
|
|||||||
_profileProperties.Precision = desiredPresision;
|
_profileProperties.Precision = desiredPresision;
|
||||||
|
|
||||||
_connectionInfo.SameDevice = 2;
|
_connectionInfo.SameDevice = 2;
|
||||||
_connectionInfo.Connections = 2;
|
//_connectionInfo.Connections = 2;
|
||||||
|
|
||||||
_telescope.Connected = true;
|
_telescope.Connected = true;
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ namespace ASCOM.Meade.net
|
|||||||
{
|
{
|
||||||
public class ConnectionInfo
|
public class ConnectionInfo
|
||||||
{
|
{
|
||||||
public int Connections { get; set; }
|
//public int Connections { get; set; }
|
||||||
public int SameDevice { get; set; }
|
public int SameDevice { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -259,7 +259,7 @@ namespace ASCOM.Meade.net
|
|||||||
|
|
||||||
return new ConnectionInfo
|
return new ConnectionInfo
|
||||||
{
|
{
|
||||||
Connections = ConnectedDevices[deviceId].Count,
|
//Connections = ConnectedDevices[deviceId].Count,
|
||||||
SameDevice = ConnectedDeviceIds[driverId].Count
|
SameDevice = ConnectedDeviceIds[driverId].Count
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user