This commit is contained in:
2020-02-11 18:08:29 +00:00
parent 4984a6a5ee
commit 4b078d0002
11 changed files with 17 additions and 19 deletions

View File

@@ -585,7 +585,7 @@ namespace AyaNova.Util
var f = new Bogus.Faker();
//RANDOM ROLES
Array values = Enum.GetValues(typeof(AuthorizationRoles));
Array values = Enum.GetValues(typeof(UserType));
Random random = new Random();
@@ -600,8 +600,8 @@ namespace AyaNova.Util
o.EndDate = DateTime.Now.AddMinutes(60).ToUniversalTime();
o.DollarAmount = Convert.ToDecimal(f.Commerce.Price());
//Random but valid enum
AuthorizationRoles randomRole = (AuthorizationRoles)values.GetValue(random.Next(values.Length));
o.Roles = randomRole;
UserType randomUserType = (UserType)values.GetValue(random.Next(values.Length));
o.UserType = randomUserType;
o.Notes = f.Lorem.Sentence();
o.Tags = RandomTags(f);