-
-
Notifications
You must be signed in to change notification settings - Fork 519
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added test collection for Marten ECommerce sample
Removed redundant retries from ESDB api tests, as we have already long polling in place
- Loading branch information
1 parent
6171bb4
commit fe66531
Showing
17 changed files
with
164 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using Core.Testing; | ||
using Ogooreck.API; | ||
using Xunit; | ||
|
||
namespace Carts.Api.Tests; | ||
|
||
public class ShoppingCartsApplicationFactory: TestWebApplicationFactory<Program>; | ||
|
||
public class ApiFixture: IDisposable | ||
{ | ||
public ApiSpecification<Program> API { get; } = | ||
ApiSpecification<Program>.Setup(new ShoppingCartsApplicationFactory()); | ||
|
||
public void Dispose() => | ||
API.Dispose(); | ||
} | ||
|
||
[CollectionDefinition("ApiTests")] | ||
public class DatabaseCollection: ICollectionFixture<ApiFixture>; | ||
|
||
[Collection("ApiTests")] | ||
public abstract class ApiTest(ApiFixture fixture) | ||
{ | ||
protected readonly ApiSpecification<Program> API = fixture.API; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.