* Activity picker dialog
* Activity picker
* Activity editor
* Activity property fields
* Blazor bindings for Elsa designer
* Only index triggers from published & enabled workflow definitions
* Handle case of null workflow blueprint not found
* Add check for zero duration and general scheduler exceptions
* Don't rethrow expression evaluation failure
* Workflow definition settings editor modal
* Integration between stencil and blazor 🎉
* Fix expression type conversion
* Add publish button and restructure components
* Fix up workflow definition ID vs workflow definition version ID
* Update EF Core migrations
* Fix Workflow Publisher
* Fix version display
* Add Import menu item
30 lines
971 B
C#
30 lines
971 B
C#
using System.Net.Http;
|
|
using System.Text;
|
|
using Elsa.Serialization.Converters;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
using Newtonsoft.Json.Serialization;
|
|
using NodaTime;
|
|
using NodaTime.Serialization.JsonNet;
|
|
|
|
namespace Elsa.ComponentTests.Helpers
|
|
{
|
|
public class JsonContent : StringContent
|
|
{
|
|
public static readonly JsonSerializerSettings SerializerSettings;
|
|
|
|
static JsonContent()
|
|
{
|
|
SerializerSettings = new JsonSerializerSettings { ContractResolver = new CamelCasePropertyNamesContractResolver() }.ConfigureForNodaTime(DateTimeZoneProviders.Tzdb);
|
|
SerializerSettings.Converters.Add(new FlagEnumConverter(new DefaultNamingStrategy()));
|
|
}
|
|
|
|
public JsonContent(string content) : base(content, Encoding.UTF8, "application/json")
|
|
{
|
|
}
|
|
|
|
public JsonContent(object content) : this(JsonConvert.SerializeObject(content, SerializerSettings))
|
|
{
|
|
}
|
|
}
|
|
} |