private User CreateRandomUser()
        {
            var rndUser = new User
            {
                OrderId      = 0, //db overwrites this
                OrderItem    = UserRandomizer.GetRandomItem(),
                CustomerName = UserRandomizer.GetRandomNames(),
                Timestamp    = Randomizer.GetRandomTime(),
                SecureSearch_CreditCardNumber = UserRandomizer.GetRandomCC(),
                Secure_LegacyPIN            = UserRandomizer.GetRandomPIN(),
                Secure_SocialSecurityNumber = Encoding.UTF8.GetBytes(UserRandomizer.GetRandomSSN())
            };

            return(rndUser);
        }
        public UserFrontEnd CreateRandomUser()
        {
            //var rng = new SecureRandom();

            // Create a new order
            var rndUser   = new UserFrontEnd();
            var orderGuid = Guid.NewGuid();
            var r         = new UserRandomizer();

            rndUser.InfoId = orderGuid;
            rndUser.PartId = GetPartId(orderGuid);

            rndUser.OrderItem                   = r.GetRandomItem();
            rndUser.CustomerName                = r.GetRandomNames();
            rndUser.Timestamp                   = r.GetRandomTime();
            rndUser.Secure_CreditCardNumber     = r.GetRandomCC();
            rndUser.Secure_LegacyPIN            = r.GetRandomPIN();
            rndUser.Secure_SSN                  = r.GetRandomSSN();
            rndUser.Secure_MetadataDisplayField = "Overwritten by CipherDb book-keeping";

            return(rndUser);
        }
        public UserFrontEnd CreateRandomUser()
        {
            //var rng = new SecureRandom();

            // Create a new order
            var rndUser = new UserFrontEnd();
            var orderGuid = Guid.NewGuid();
            var r = new UserRandomizer();

            rndUser.InfoId = orderGuid;
            rndUser.PartId = GetPartId(orderGuid);

            rndUser.OrderItem = r.GetRandomItem();
            rndUser.CustomerName = r.GetRandomNames();
            rndUser.Timestamp = r.GetRandomTime();
            rndUser.Secure_CreditCardNumber = r.GetRandomCC();
            rndUser.Secure_LegacyPIN = r.GetRandomPIN();
            rndUser.Secure_SSN = r.GetRandomSSN();
            rndUser.Secure_MetadataDisplayField = "Overwritten by CipherDb book-keeping";

            return rndUser;
        }
        private User CreateRandomUser()
        {
            var rndUser = new User();
            var r = new UserRandomizer();

            rndUser.OrderId = 0; //db overwrites this
            rndUser.OrderItem = r.GetRandomItem();
            rndUser.CustomerName = r.GetRandomNames();
            rndUser.Timestamp = Randomizer.GetRandomTime();
            rndUser.Secure_CreditCardNumber = r.GetRandomCC();
            rndUser.Secure_LegacyPIN = r.GetRandomPIN();
            rndUser.Secure_SocialSecurityNumber = Encoding.UTF8.GetBytes(r.GetRandomSSN());
            return rndUser;
        }