KlusterKite  0.0.0
A framework to create scalable and redundant services based on awesome Akka.Net project.
KlusterKite.Data.Tests.DataActorTests Class Reference

Testing the BaseCrudActor<TContext> More...

Inheritance diagram for KlusterKite.Data.Tests.DataActorTests:
KlusterKite.Core.TestKit.BaseActorTest< DataActorTests.Configurator >

Classes

class  Configurator
 Configures current test system More...
 

Public Member Functions

 DataActorTests (ITestOutputHelper output)
 
async Task CreateTest ()
 Testing the create request More...
 
async Task DeleteTest ()
 Testing the delete request More...
 
async Task GetByIdTest ()
 Testing the get by id request More...
 
async Task UpdateTest ()
 Testing update request More...
 
async Task UpdateWithApiRequestTest ()
 Testing update with api request More...
 
- Public Member Functions inherited from KlusterKite.Core.TestKit.BaseActorTest< DataActorTests.Configurator >
new TestActorRef< TActor > ActorOfAsTestActorRef< TActor > (Expression< Func< TActor >> factory, string name=null)
 Create a new actor as child of ActorSystem and returns it as TestActorRef<TActor> to enable access to the underlying actor instance via TestActorRefBase<TActor>.UnderlyingActor. Uses an expression that calls the constructor of TActor . More...
 
new TestActorRef< TActor > ActorOfAsTestActorRef< TActor > (Props props, string name=null)
 Create a new actor as child of ActorSystem and returns it as TestActorRef<TActor> to enable access to the underlying actor instance via TestActorRefBase<TActor>.UnderlyingActor. Uses an expression that calls the constructor of TActor . More...
 
virtual void Cleanup ()
 Cleanup after test run More...
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from KlusterKite.Core.TestKit.BaseActorTest< DataActorTests.Configurator >
 BaseActorTest (ITestOutputHelper output)
 Initializes a new instance of the BaseActorTest<TConfigurator> class. More...
 
override void Dispose (bool disposing)
 
ExpectMsg< T > (string path)
 Waiting for message

See also
TestActorForwarder

that was sent to the specified address More...

 
ExpectMsg< T > (string path, TimeSpan timeout)
 Waiting for message

See also
TestActorForwarder

that was sent to the specified address on specified time More...

 
void ExpectNoTestMsg ()
 Expecting that there is no new messages More...
 
TestMessage< T > ExpectTestMsg< T > ()
 Expects test message

See also
TestActorForwarder
More...
 
TestMessage< T > ExpectTestMsg< T > (TimeSpan timeout)
 Waiting for message

See also
TestActorForwarder

that was sent on specified time More...

 

Detailed Description

Testing the BaseCrudActor<TContext>

Definition at line 39 of file DataActorTests.cs.

Constructor & Destructor Documentation

◆ DataActorTests()

KlusterKite.Data.Tests.DataActorTests.DataActorTests ( ITestOutputHelper  output)

Definition at line 42 of file DataActorTests.cs.

Member Function Documentation

◆ CreateTest()

async Task KlusterKite.Data.Tests.DataActorTests.CreateTest ( )

Testing the create request

Returns
The async task

Definition at line 52 of file DataActorTests.cs.

◆ DeleteTest()

async Task KlusterKite.Data.Tests.DataActorTests.DeleteTest ( )

Testing the delete request

Returns
The async task

Definition at line 92 of file DataActorTests.cs.

◆ Dispose()

override void KlusterKite.Data.Tests.DataActorTests.Dispose ( bool  disposing)
protected

Definition at line 247 of file DataActorTests.cs.

◆ GetByIdTest()

async Task KlusterKite.Data.Tests.DataActorTests.GetByIdTest ( )

Testing the get by id request

Returns
The async task

Definition at line 122 of file DataActorTests.cs.

◆ UpdateTest()

async Task KlusterKite.Data.Tests.DataActorTests.UpdateTest ( )

Testing update request

Returns
The async task

Definition at line 150 of file DataActorTests.cs.

◆ UpdateWithApiRequestTest()

async Task KlusterKite.Data.Tests.DataActorTests.UpdateWithApiRequestTest ( )

Testing update with api request

Returns
The async task

Definition at line 195 of file DataActorTests.cs.


The documentation for this class was generated from the following file: