Ejemplo n.º 1
0
        /// <summary>
        /// Creates an Ultraviolet Framework test application with an Ultraviolet context in service mode.
        /// </summary>
        /// <returns>The test application that was created.</returns>
        protected IUltravioletTestApplication GivenAnUltravioletApplicationInServiceMode()
        {
            if (application != null)
            {
                throw new InvalidOperationException("An application has already been created.");
            }

            application = new UltravioletTestApplication(headless: true, serviceMode: true);

            return(application);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates an Ultraviolet Framework test application.
        /// </summary>
        /// <returns>The test application that was created.</returns>
        protected IUltravioletTestApplication GivenAnUltravioletApplication()
        {
            if (application != null)
            {
                throw new InvalidOperationException("An application has already been created.");
            }

            application = new UltravioletTestApplication();

            return(application);
        }