Skip to content

Commit a9501ff

Browse files
committed
Add missing properties in happy test
1 parent 48541a7 commit a9501ff

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/OpenApiKiotaEndToEndTests/ModelStateValidation/ModelStateValidationTests.cs

+3
Original file line numberDiff line numberDiff line change
@@ -545,16 +545,19 @@ public async Task Can_create_resource_with_valid_properties()
545545
Type = SocialMediaAccountResourceType.SocialMediaAccounts,
546546
Attributes = new SocialMediaAccountAttributesInPostRequest
547547
{
548+
AlternativeId = newAccount.AlternativeId,
548549
FirstName = newAccount.FirstName,
549550
LastName = newAccount.LastName,
550551
UserName = newAccount.UserName,
551552
CreditCard = newAccount.CreditCard,
552553
Email = newAccount.Email,
554+
Password = newAccount.Password,
553555
Phone = newAccount.Phone,
554556
Age = newAccount.Age,
555557
ProfilePicture = newAccount.ProfilePicture!.ToString(),
556558
BackgroundPicture = newAccount.BackgroundPicture,
557559
Tags = newAccount.Tags,
560+
CountryCode = newAccount.CountryCode,
558561
Planet = newAccount.Planet,
559562
NextRevalidation = newAccount.NextRevalidation!.Value.ToString(),
560563
ValidatedAt = newAccount.ValidatedAt!,

test/OpenApiNSwagEndToEndTests/ModelStateValidation/ModelStateValidationTests.cs

+3
Original file line numberDiff line numberDiff line change
@@ -495,16 +495,19 @@ public async Task Can_create_resource_with_valid_properties()
495495
{
496496
Attributes = new SocialMediaAccountAttributesInPostRequest
497497
{
498+
AlternativeId = newAccount.AlternativeId,
498499
FirstName = newAccount.FirstName,
499500
LastName = newAccount.LastName,
500501
UserName = newAccount.UserName,
501502
CreditCard = newAccount.CreditCard,
502503
Email = newAccount.Email,
504+
Password = newAccount.Password,
503505
Phone = newAccount.Phone,
504506
Age = newAccount.Age,
505507
ProfilePicture = newAccount.ProfilePicture,
506508
BackgroundPicture = new Uri(newAccount.BackgroundPicture!),
507509
Tags = newAccount.Tags,
510+
CountryCode = newAccount.CountryCode,
508511
Planet = newAccount.Planet,
509512
NextRevalidation = newAccount.NextRevalidation!.Value.ToString(),
510513
ValidatedAt = newAccount.ValidatedAt!,

0 commit comments

Comments
 (0)