Beispiel #1
0
        public void TestPortNameWithStoredSettings()
        {
            _mockProfileService.Setup(m => m.ActiveProfile.FlatDeviceSettings.PortName).Returns("COM3");
            var sut = new PegasusAstroFlatMaster(_mockProfileService.Object);

            Assert.That(sut.PortName, Is.EqualTo("COM3"));
        }
Beispiel #2
0
 public void Init()
 {
     _mockSdk            = new Mock <IPegasusFlatMaster>();
     _mockProfileService = new Mock <IProfileService>();
     _mockProfileService.Setup(m => m.ActiveProfile.FlatDeviceSettings.PortName).Returns("COM3");
     _sut = new PegasusAstroFlatMaster(_mockProfileService.Object)
     {
         Sdk = _mockSdk.Object
     };
 }