Inheritance: IPowerShellSessionFactory
        public void Constructor_AllParametersAreSet_ObjectIsInstantiated()
        {
            // Arrange
            var powerShellHost = new Mock<IPowerShellHost>();
            var filesystemAccessor = new Mock<IFilesystemAccessor>();

            // Act
            var powerShellSessionFactory = new PowerShellSessionFactory(powerShellHost.Object, filesystemAccessor.Object);

            // Assert
            Assert.IsNotNull(powerShellSessionFactory);
        }
        public void GetSession_ResultIsNotNull()
        {
            // Arrange
            var userInterface = new Mock<IUserInterface>();
            var powerShellUserInterface = new NuDeployPowerShellUserInterface(userInterface.Object);
            var applicationInformation = ApplicationInformationProvider.GetApplicationInformation();
            var powerShellHost = new PowerShellHost(powerShellUserInterface, applicationInformation);
            var filesystemAccessor = new Mock<IFilesystemAccessor>();

            var powerShellSessionFactory = new PowerShellSessionFactory(powerShellHost, filesystemAccessor.Object);

            // Act
            IPowerShellSession result = powerShellSessionFactory.GetSession();

            // Assert
            Assert.IsNotNull(result);
        }