mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
908 B
27 lines
908 B
// ==========================================================================
|
|
// Helper.cs
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex Group
|
|
// All rights reserved.
|
|
// ==========================================================================
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using Squidex.Infrastructure.CQRS.Events;
|
|
|
|
namespace Benchmarks.Utils
|
|
{
|
|
public static class Helper
|
|
{
|
|
public static EventData CreateEventData()
|
|
{
|
|
return new EventData { EventId = Guid.NewGuid(), Metadata = "EventMetdata", Payload = "EventPayload", Type = "MyEvent" };
|
|
}
|
|
|
|
public static void Warmup(this IEventStore eventStore)
|
|
{
|
|
eventStore.AppendEventsAsync(Guid.NewGuid(), "my-stream", new List<EventData> { CreateEventData() }).Wait();
|
|
}
|
|
}
|
|
}
|
|
|