Started validation tests
This commit is contained in:
		| @@ -0,0 +1,15 @@ | ||||
| using ApplicationLayer.Services.Users.Models; | ||||
| using Bogus; | ||||
|  | ||||
| namespace VisaApi.Fakers.Common | ||||
| { | ||||
|     public sealed class ChangeAuthDataFaker : Faker<ChangeAuthData> | ||||
|     { | ||||
|         public ChangeAuthDataFaker() | ||||
|         { | ||||
|             RuleFor(a => a.Email, f => f.Internet.Email()); | ||||
|  | ||||
|             RuleFor(a => a.Password, f => f.Internet.Password()); | ||||
|         } | ||||
|     } | ||||
| } | ||||
| @@ -1,18 +0,0 @@ | ||||
| using Bogus; | ||||
| using Domains.Users; | ||||
|  | ||||
| namespace VisaApi.Fakers.Common | ||||
| { | ||||
|     /// <summary> | ||||
|     /// Generates users | ||||
|     /// </summary> | ||||
|     public sealed class UserFaker : Faker<User> | ||||
|     { | ||||
|         public UserFaker() | ||||
|         { | ||||
|             RuleFor(u => u.Email, f => f.Internet.Email()); | ||||
|  | ||||
|             RuleFor(u => u.Password, f => f.Internet.Password()); | ||||
|         } | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user