GatewayAggregate GenerateRandomAggregate()
 {
     var result =  new GatewayAggregate
     {
         Id = Guid.NewGuid(),
         GatewayDescription = StringExtension.RandomString(20),
         GatewayPlatformType = new Random().Next(),
         GatewayType = new Random().Next(),
         GatewayTypeName = StringExtension.RandomString(20),
         TimeStamp = DateTimeOffset.Now
     };
     result.GatewayByCountry = new Collection<GatewayByCountry>
         {
             new GatewayByCountry
             {
                 Id = Guid.NewGuid(),
                 GatewayId = result.Id,
                 CountryId = Guid.NewGuid(),
                 TimeStamp = DateTimeOffset.Now
             }
         };
     return result;
 }
 BaseEvent GenerateMessage(GatewayAggregate aggregate)
 {
     var serializedAggregate = new JsonSerializer().Serialize<GatewayAggregate>(aggregate);
     return new BaseEvent
     {
         EventID = Guid.NewGuid(),
         MessageOriginator = "Tester",
         MessageType = typeof(RegisteredPaymentGateway).Name,
         Topic = "PaymentGateway",
         Aggregate = new CryptoManager().Encrypt(serializedAggregate, HostPasswordConfigFake.GetHostPassword())
     };
 }