Skip to content

Instantly share code, notes, and snippets.

@molnarm
molnarm / GeneratedCode.cs
Created November 29, 2018 08:20
NSswag with operation with multiple successful responses
//----------------------
// <auto-generated>
// Generated using the NSwag toolchain v11.18.7.0 (NJsonSchema v9.10.72.0 (Newtonsoft.Json v9.0.0.0)) (http://NSwag.org)
// </auto-generated>
//----------------------
namespace Custom
{
#pragma warning disable // Disable all warnings
@molnarm
molnarm / GeneratedCode.cs
Created July 24, 2018 13:13
Code generation issue
//----------------------
// <auto-generated>
// Generated using the NSwag toolchain v11.17.21.0 (NJsonSchema v9.10.63.0 (Newtonsoft.Json v9.0.0.0)) (http://NSwag.org)
// </auto-generated>
//----------------------
namespace RailKit
{
#pragma warning disable // Disable all warnings
@molnarm
molnarm / test.cs
Created July 20, 2018 09:47
Swagger codegen C# issue
/* .. excerpt from RootClass.cs */
public RootClass(Guid? Id = default(Guid?), RootPropertyEnum? RootProperty = default(RootPropertyEnum?))
{
this.Id = Id;
this.RootProperty = RootProperty;
}
/* excerpt from DerivedClass.cs */
@molnarm
molnarm / ChangeTest.cs
Created August 19, 2016 07:11
Sample test for an exception thrown from DynamicData. The test passes but the error is displayed in the output.
using System;
using DynamicData;
using DynamicData.Binding;
using NUnit.Framework;
[TestFixture]
public class DynamicDataTest
{