Create a test class that takes care of setting the server URL and cleaning up after each unit test.
More...
|
static void | ApplyConfiguredCredentials () |
| Apply the current configured API_URL and API_AuthenticationToken credentials to the static API.
|
|
static void | CheckConnection () |
| Set the Client API Server URL to the configured API_URL.
|
|
static void | TestSuiteCleanup () |
| Actions to run once when the C# Unit Tests finish. Note: This method will not automatically be inherited and run by tests suites in different assemblies that import this library. You will need to create your own method with the [AssemblyCleanup] attribute that calls this method.
|
|
static void | TestSuiteInitialize (TestContext context) |
| Actions to run once when the C# Unit Tests initialize. Note: This method will not automatically be inherited and run by tests suites in different assemblies that import this library. You will need to create your own method with the [AssemblyInitialize] attribute that calls this method.
|
|
|
static Reflection | Reflection |
| Shared instance of a class for generating random resources.
|
|
static Samples | Samples |
| Shared instance of a class for generating reusable sample resources.
|
|
Create a test class that takes care of setting the server URL and cleaning up after each unit test.
Definition at line 23 of file BaseServerAPITestSuite.cs.
◆ BaseServerTestSuite()
AnalyzeReTesting.Base.BaseServerTestSuite.BaseServerTestSuite |
( |
bool? |
CleanBeforeEveryTest = null , |
|
|
bool? |
CleanAfterEveryTest = null |
|
) |
| |
|
inlineprotected |
BaseServerAPITest Constructor. MSTest runs this constructor for each test.
- Parameters
-
CleanBeforeEveryTest | Optionally allows the derived class to control cleanup behaviour in spite of the global default. |
CleanAfterEveryTest | Optionally allows the derived class to control cleanup behaviour in spite of the global default. |
Definition at line 179 of file BaseServerAPITestSuite.cs.
◆ AddCommonTestCleanupAction()
void AnalyzeReTesting.Base.BaseTestSuite.AddCommonTestCleanupAction |
( |
Action |
action | ) |
|
|
inlineprotectedinherited |
◆ AddCommonTestInitializeAction()
void AnalyzeReTesting.Base.BaseTestSuite.AddCommonTestInitializeAction |
( |
Action |
action | ) |
|
|
inlineprotectedinherited |
◆ ApplyConfiguredCredentials()
static void AnalyzeReTesting.Base.BaseServerTestSuite.ApplyConfiguredCredentials |
( |
| ) |
|
|
inlinestatic |
Apply the current configured API_URL and API_AuthenticationToken credentials to the static API.
Definition at line 226 of file BaseServerAPITestSuite.cs.
◆ BaseClass_Cleanup()
static void AnalyzeReTesting.Base.BaseTestSuite.BaseClass_Cleanup |
( |
Action |
action | ) |
|
|
inlinestaticprotectedinherited |
◆ BaseClass_Initialize()
static void AnalyzeReTesting.Base.BaseTestSuite.BaseClass_Initialize |
( |
TestContext |
context, |
|
|
Action |
action |
|
) |
| |
|
inlinestaticprotectedinherited |
◆ BaseTest_Cleanup()
void AnalyzeReTesting.Base.BaseTestSuite.BaseTest_Cleanup |
( |
| ) |
|
|
inlineinherited |
◆ BaseTest_Initialize()
void AnalyzeReTesting.Base.BaseTestSuite.BaseTest_Initialize |
( |
| ) |
|
|
inlineinherited |
◆ CheckConnection()
static void AnalyzeReTesting.Base.BaseServerTestSuite.CheckConnection |
( |
| ) |
|
|
inlinestatic |
◆ TestSuiteCleanup()
static void AnalyzeReTesting.Base.BaseServerTestSuite.TestSuiteCleanup |
( |
| ) |
|
|
inlinestatic |
Actions to run once when the C# Unit Tests finish. Note: This method will not automatically be inherited and run by tests suites in different assemblies that import this library. You will need to create your own method with the [AssemblyCleanup] attribute that calls this method.
Definition at line 163 of file BaseServerAPITestSuite.cs.
◆ TestSuiteInitialize()
static void AnalyzeReTesting.Base.BaseServerTestSuite.TestSuiteInitialize |
( |
TestContext |
context | ) |
|
|
inlinestatic |
Actions to run once when the C# Unit Tests initialize. Note: This method will not automatically be inherited and run by tests suites in different assemblies that import this library. You will need to create your own method with the [AssemblyInitialize] attribute that calls this method.
Definition at line 84 of file BaseServerAPITestSuite.cs.
◆ Reflection
Reflection AnalyzeReTesting.Base.BaseClientTestSuite.Reflection |
|
staticinherited |
◆ Samples
Samples AnalyzeReTesting.Base.BaseClientTestSuite.Samples |
|
staticinherited |
Shared instance of a class for generating reusable sample resources.
Definition at line 15 of file BaseClientTestSuite.cs.
◆ API_AuthenticationToken
IAccessToken AnalyzeReTesting.Base.BaseServerTestSuite.API_AuthenticationToken |
|
staticgetset |
Set the AuthenticationToken to supply to the server before every test (if applicable).
Definition at line 32 of file BaseServerAPITestSuite.cs.
◆ API_URL
string AnalyzeReTesting.Base.BaseServerTestSuite.API_URL |
|
staticgetset |
◆ DeletingResourcesBetweenTests
bool AnalyzeReTesting.Base.BaseServerTestSuite.DeletingResourcesBetweenTests |
|
get |
Determines based on the EnvironmentSettings whether injected resources (such as Samples) are being deleted between each test.
Definition at line 46 of file BaseServerAPITestSuite.cs.
◆ TestContext
TestContext AnalyzeReTesting.Base.BaseTestSuite.TestContext |
|
getsetinherited |
The documentation for this class was generated from the following file: