Sha256: 424024c7ea01aa8f8c19acce703234512707e959218ed9867eea29618498d05b

Contents?: true

Size: 601 Bytes

Versions: 23

Compression:

Stored size: 601 Bytes

Contents

using System;
using Generators.Input;
using Generators.Output;
using Humanizer;

namespace Generators.Exercises
{
    public class Yacht: GeneratorExercise
    {
	protected override void UpdateCanonicalData(CanonicalData canonicalData)
	{
	   canonicalData.Exercise = "yacht-game";
	   foreach (var canonicalDataCase in canonicalData.Cases)
	   {				
              var input = canonicalDataCase.Properties["input"] as System.Collections.Generic.Dictionary<string,object>;
	      input["category"] = new UnescapedValue($"YachtCategory.{input["category"].ToString().Dehumanize()}");
	   }
	}
    }
}

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
trackler-2.2.1.151 tracks/csharp/generators/Exercises/Yacht.cs
trackler-2.2.1.150 tracks/csharp/generators/Exercises/Yacht.cs
trackler-2.2.1.149 tracks/csharp/generators/Exercises/Yacht.cs
trackler-2.2.1.148 tracks/csharp/generators/Exercises/Yacht.cs
trackler-2.2.1.147 tracks/csharp/generators/Exercises/Yacht.cs
trackler-2.2.1.146 tracks/csharp/generators/Exercises/Yacht.cs
trackler-2.2.1.145 tracks/csharp/generators/Exercises/Yacht.cs
trackler-2.2.1.144 tracks/csharp/generators/Exercises/Yacht.cs
trackler-2.2.1.143 tracks/csharp/generators/Exercises/Yacht.cs
trackler-2.2.1.142 tracks/csharp/generators/Exercises/Yacht.cs
trackler-2.2.1.141 tracks/csharp/generators/Exercises/Yacht.cs
trackler-2.2.1.140 tracks/csharp/generators/Exercises/Yacht.cs
trackler-2.2.1.139 tracks/csharp/generators/Exercises/Yacht.cs
trackler-2.2.1.138 tracks/csharp/generators/Exercises/Yacht.cs
trackler-2.2.1.137 tracks/csharp/generators/Exercises/Yacht.cs
trackler-2.2.1.136 tracks/csharp/generators/Exercises/Yacht.cs
trackler-2.2.1.135 tracks/csharp/generators/Exercises/Yacht.cs
trackler-2.2.1.134 tracks/csharp/generators/Exercises/Yacht.cs
trackler-2.2.1.133 tracks/csharp/generators/Exercises/Yacht.cs
trackler-2.2.1.132 tracks/csharp/generators/Exercises/Yacht.cs