Esempio n. 1
0
        public void GenerateSimplestDatasetManyUsers(int usersNumber)
        {
            Random random = new Random();
            Dictionary <(Guid userId, Guid deviceId), (AmountRange normal, AmountRange fraud)> dict =
                new Dictionary <(Guid userId, Guid deviceId), (AmountRange normal, AmountRange fraud)>();

            for (int i = 1; i <= usersNumber; i++)
            {
                var normalRange = new AmountRange(i * 150, i * 300);
                var fraudRange  = new AmountRange(i * 250, i * 350);
                dict.Add((Guid.NewGuid(), Guid.NewGuid()), (normalRange, fraudRange));
            }

            (Guid userId, Guid deviceId)[] keys = dict.Keys.ToArray();
Esempio n. 2
0
 public OperationReceiverInfo(string receiverId, OperationType operationType, AmountRange fraudRange, AmountRange normalRange)
 {
     this.ReceiverId    = receiverId;
     this.FraudRange    = fraudRange;
     this.NormalRange   = normalRange;
     this.OperationType = operationType;
 }