public object Get() { return(new { insecure = _rnd.Generate(), secure = _rnd.Generate(RandomType.Secure), secureString = _rnd.Generate(RandomType.Secure), insecureSring = _rnd.GenerateString(RandomType.InSecure), secureInt = _rnd.GenerateInt(RandomType.Secure), secureDouble = _rnd.GenerateDouble(RandomType.Secure) }); }
internal Shield Forge() { var id = identifierProvider.Generate(); var expiration = dateTimeProvider.Now.AddDays(expirationDays); var armor = randomProvider.Generate(armorMinimum, armorMaximum + 1); var enchanted = (randomProvider.Generate(enchantmentDenominator + 1) == 0); return(new Shield() { Id = id, Expiration = expiration, Armor = armor, Enchanted = enchanted }); }