File tree Expand file tree Collapse file tree
ApiService/BookStore.ApiService.Tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11using BookStore . ApiService . Aggregates ;
2- using BookStore . ApiService . Commands . Books ;
2+ using BookStore . ApiService . Commands ;
33using BookStore . ApiService . Events ;
44using BookStore . ApiService . Handlers . Books ;
55using Marten ;
@@ -35,7 +35,7 @@ public async Task CreateBookHandler_ShouldStartStreamWithBookAddedEvent()
3535 var result = BookHandlers . Handle ( command , session ) ;
3636
3737 // Assert
38- await Assert . That ( result ) . IsNotNull ( ) ;
38+ await Assert . That ( result . Item1 ) . IsNotNull ( ) ;
3939 session . Events . Received ( 1 ) . StartStream < BookAggregate > (
4040 command . Id ,
4141 Arg . Is < BookAdded > ( e =>
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ namespace BookStore.ApiService.Tests;
1212public class JsonSerializationTests
1313{
1414 // Static lazy initialization for better performance - shared across all tests
15- private static readonly Lazy < JsonSerializerOptions > _options = new ( ( ) => new ( )
15+ static readonly Lazy < JsonSerializerOptions > _options = new ( ( ) => new ( )
1616 {
1717 PropertyNamingPolicy = JsonNamingPolicy . CamelCase ,
1818 Converters = { new System . Text . Json . Serialization . JsonStringEnumConverter ( JsonNamingPolicy . CamelCase ) }
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ namespace BookStore.Web.Tests;
44
55public class WebTests
66{
7- private static readonly TimeSpan DefaultTimeout = TimeSpan . FromSeconds ( 30 ) ;
7+ static readonly TimeSpan DefaultTimeout = TimeSpan . FromSeconds ( 30 ) ;
88
99 [ Test ]
1010 [ Category ( "Integration" ) ]
You can’t perform that action at this time.
0 commit comments