Exemplo n.º 1
0
        /// <summary>
        /// Disconnects and reconnects to AFDatabase.
        /// </summary>
        /// <returns>Returns the new database after reconnecting.</returns>
        /// <remarks>
        /// This operation clears the AFSDK cache and confirms object persistence on AF the server. It is used
        /// to confirm that test changes are persisted (and are available to calls made with a new connection).
        /// </remarks>
        public AFDatabase ReconnectToDB()
        {
            PISystem.Disconnect();
            PISystem.Connect();

            AFDatabase = PISystem.Databases[Settings.AFDatabase];
            return(AFDatabase);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Disconnects from the PISystem when disposing of the fixture.
 /// </summary>
 public void Dispose() => PISystem.Disconnect();