File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
Source/Tests/CleanArchitecture.FunctionalTests Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -48,9 +48,9 @@ public async Task CreateProduct_ShouldReturnProductId()
4848 var url = ApiRoutes . Product . CreateProduct ;
4949 var command = new CreateProductCommand
5050 {
51- Name = RandomDataExtensionMethods . RandomString ( 10 ) ,
52- Price = RandomDataExtensionMethods . RandomNumber ( 100000000 ) ,
53- BarCode = RandomDataExtensionMethods . RandomString ( 11 )
51+ Name = RandomDataExtensions . RandomString ( 10 ) ,
52+ Price = RandomDataExtensions . RandomNumber ( 100000000 ) ,
53+ BarCode = RandomDataExtensions . RandomString ( 11 )
5454 } ;
5555 var ghostAccount = await client . GetGhostAccount ( ) ;
5656
@@ -70,9 +70,9 @@ public async Task UpdateProduct_ShouldSucceed()
7070 var command = new UpdateProductCommand
7171 {
7272 Id = 1 ,
73- Name = RandomDataExtensionMethods . RandomString ( 10 ) ,
74- Price = RandomDataExtensionMethods . RandomNumber ( 100000000 ) ,
75- BarCode = RandomDataExtensionMethods . RandomString ( 11 )
73+ Name = RandomDataExtensions . RandomString ( 10 ) ,
74+ Price = RandomDataExtensions . RandomNumber ( 100000000 ) ,
75+ BarCode = RandomDataExtensions . RandomString ( 11 )
7676 } ;
7777 var ghostAccount = await client . GetGhostAccount ( ) ;
7878
Original file line number Diff line number Diff line change 33
44namespace CleanArchitecture . FunctionalTests . Common ;
55
6- public static class AuthenticationExtensionMethods
6+ public static class AuthenticationExtensions
77{
88 public static async Task < AuthenticationResponse > GetGhostAccount ( this HttpClient client )
99 {
Original file line number Diff line number Diff line change 33
44namespace CleanArchitecture . FunctionalTests . Common ;
55
6- public static class HttpClientGetExtensionMethods
6+ public static class HttpClientExtensions
77{
88 static readonly JsonSerializerOptions DefaultJsonOptions = new ( )
99 {
Original file line number Diff line number Diff line change 11namespace CleanArchitecture . FunctionalTests . Common ;
22
3- public static class RandomDataExtensionMethods
3+ public static class RandomDataExtensions
44{
55 public static string RandomString ( int length )
66 {
You can’t perform that action at this time.
0 commit comments