Amss.Boilerplate.Tests.Business.EntityHelper.CreateTestUser C# (CSharp) Method

CreateTestUser() public static method

public static CreateTestUser ( this testBase ) : UserEntity
testBase this
return Amss.Boilerplate.Data.UserEntity
        public static UserEntity CreateTestUser(this BusinessIntegrationTestBase testBase)
        {
            var u = new UserEntity
                {
                    Name = ShortStringGenerator.GetRandomValue(),
                    Email = ShortStringGenerator.GetRandomValue(),
                };

            var r = CreateTestRole(testBase);
            u.Role = r;

            return u;
        }