示例#1
0
        public ConnectionManager(ConnectionData connectionData)
        {
            _client = new SftpClient(connectionData.Host,
                                     connectionData.Port,
                                     connectionData.Username,
                                     connectionData.Password);

            commandManager = new CommandManager(connectionData);

            factory = new LibFactory();
        }
        public void Null_Object()
        {
            // Arrange
            LibFactory     libFactory = new LibFactory();
            ReplaceableLib lib;

            // Act
            lib = libFactory.Create(dropDownMock.SelectedItem(5));

            // Assert
            Assert.IsNull(lib);
        }
        public void AndroidAutoHMI_Object()
        {
            // Arrange
            LibFactory     libFactory = new LibFactory();
            ReplaceableLib lib;
            AndroidAutoHMI androidAutoHMI = new AndroidAutoHMI();

            // Act
            lib = libFactory.Create(dropDownMock.SelectedItem(3));

            // Assert
            Assert.AreEqual(androidAutoHMI.GetType(), lib.GetType());
        }
        public void AndroidAutoAppFramework_Object()
        {
            // Arrange
            LibFactory              libFactory = new LibFactory();
            ReplaceableLib          lib;
            AndroidAutoAppFramework androidAutoAppFramework = new AndroidAutoAppFramework();

            // Act
            lib = libFactory.Create(dropDownMock.SelectedItem(2));

            // Assert
            Assert.AreEqual(androidAutoAppFramework.GetType(), lib.GetType());
        }