원클릭으로
servicestack-testing
Tests services using ServiceStack’s testing utilities and in-memory hosts.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Tests services using ServiceStack’s testing utilities and in-memory hosts.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Designs stable, discoverable APIs using routes, metadata, and versioning conventions.
Implements authentication using ServiceStack Auth Providers and session handling.
Applies role-, permission-, and ownership-based authorization using ServiceStack idioms.
Implements AutoQuery services, custom filters, and permission-aware querying.
Designs request/response DTOs using DTO-first, message-based ServiceStack conventions.
Controls OpenAPI / metadata exposure without compromising ServiceStack-first design.
| name | servicestack-testing |
| description | Tests services using ServiceStack’s testing utilities and in-memory hosts. |
ServiceStack provides excellent support for both unit and integration testing.
Service class.var service = new MyService { Db = dbFactory.Open() };
var response = service.Any(new MyRequest { ... });
Assert.That(response.Result, Is.EqualTo("Expected"));
BasicAppHost or InMemoryAppHost for light integration tests.AppHost (self-hosted or TestServer) for end-to-end tests with typed clients.public class MyIntegrationTest : ServiceStackTestBase
{
public MyIntegrationTest()
{
ConfigureAppHost(new AppHost());
}
[Test]
public void Can_call_service()
{
var client = CreateClient();
var response = client.Get(new MyRequest { ... });
// ... assertions
}
}
ServiceStack is designed for easy DI, so you can easily swap real implementations with mocks (e.g., Moq, NSubstitute) in your AppHost configuration during tests.
AppHost configuration for related integration tests.