Ambition.Testing.Helper – ambition Reference Manual
Packages
ambition
Ambition
Testing
Helper
get_mock_state
mock_dispatch
mock_dispatch_with_request
Helper
Helper
Object Hierarchy:
Description:
public
class
Helper
:
Object
Helper methods for testing an Ambition application.
Namespace:
Ambition.Testing
Package:
ambition
Content:
Static methods:
public
static
State
get_mock_state
(
string
id =
"test"
)
Retrieve a mock State object.
public
static
TestResponse
mock_dispatch
(
Application
app,
HttpMethod
method,
string
path,
HashMap
<
string
,
string
>? config_override =
null
)
Perform a mock request against a given path. Runs through the dispatcher without launching the full application.
public
static
TestResponse
mock_dispatch_with_request
(
Application
app,
Request
mock_request,
HashMap
<
string
,
string
>? config_override =
null
)
Perform a mock request against a given request. Runs through the dispatcher without launching the full application.
Creation methods:
public
Helper
()
Inherited Members:
All known members inherited from class GLib.Object
@new
newv
new_valist
get_type
get_class
@ref
unref
ref_sink
weak_ref
weak_unref
add_weak_pointer
remove_weak_pointer
@get
@set
get_property
set_property
get_data
set_data
set_data_full
steal_data
get_qdata
set_qdata
set_qdata_full
steal_qdata
freeze_notify
thaw_notify
dispose
constructed
notify_property
connect
disconnect
add_toggle_ref
remove_toggle_ref
bind_property
notify
ref_count