Click or drag to resize

NeonServiceFixtureTService Class

Fixture for testing a NeonService.
Inheritance Hierarchy

Namespace:  Neon.Xunit
Assembly:  Neon.Xunit (in Neon.Xunit.dll) Version: 2.14.0
public class NeonServiceFixture<TService> : TestFixture
where TService : NeonService

Type Parameters


[Missing <typeparam name="TService"/> documentation for "T:Neon.Xunit.NeonServiceFixture`1"]

The NeonServiceFixtureTService type exposes the following members.

Protected propertyInAction
Returns true if the Start(Action) method is running.
(Inherited from TestFixture.)
Protected propertyIsDisposed
Returns true if the instance has been disposed.
(Inherited from TestFixture.)
Public propertyIsRunning
Returns true if the fixture has been initialized.
(Inherited from TestFixture.)
Public propertyService
Returns the service instance.
Public propertyState
Used by unit test classes to persist arbitrary name/value information across individual unit tests.
(Inherited from TestFixture.)
Protected methodCheckDisposed
Verifies that the fixture instance has not been disposed.
(Inherited from TestFixture.)
Protected methodCheckWithinAction
Verifies that the fixture instance's Start(Action) method is executing.
(Inherited from TestFixture.)
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from TestFixture.)
Protected methodDispose(Boolean)
Releases all associated resources.
(Overrides TestFixtureDispose(Boolean).)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
(Overrides TestFixtureFinalize.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetHttpClient
Returns a HttpClient instance configured to communicate with the service via the named HTTP/HTTPS endpoint.
Public methodGetJsonClient
Returns a JsonClient instance configured to communicate with the service via the named HTTP/HTTPS endpoint.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOnRestart

Called when an already started fixture is being restarted. This provides the fixture an opportunity to do some custom initialization. This base method does nothing.

Note Note
This method is intended only for use by test fixture implementations. Unit tests or test fixtures should never call this directly.
(Inherited from TestFixture.)
Public methodReset
INTERNAL USE ONLY: Resets the fixture state.
(Overrides TestFixtureReset.)
Public methodRestart
Restarts the service.
Public methodStart(Action) (Overrides TestFixtureStart(Action).)
Public methodStart(FuncTService, ServiceMap, TimeSpan)
Starts the fixture including a TService service instance if the fixture is not already running.
Public methodStartAsComposed
Used to start the fixture within a ComposedFixture.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also