Sha256: b3fd64b63649ca03677919fbcac2dc06c78321237df0fc6a6c5efacdc58c9fb1

Contents?: true

Size: 641 Bytes

Versions: 28

Compression:

Stored size: 641 Bytes

Contents

using Generators.Input;

namespace Generators.Exercises
{
    public class BookStore : GeneratorExercise
    {
        protected override void UpdateCanonicalData(CanonicalData canonicalData)
        {
            foreach (var canonicalDataCase in canonicalData.Cases)
            {
                canonicalDataCase.Expected = canonicalDataCase.Expected / 100.0f;
                canonicalDataCase.Input["basket"] = ConvertHelper.ToArray<int>(canonicalDataCase.Input["basket"]);
                canonicalDataCase.SetInputParameters("basket");
                canonicalDataCase.UseVariablesForInput = true;
            }
        }
    }
}

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
trackler-2.2.1.159 tracks/csharp/generators/Exercises/BookStore.cs
trackler-2.2.1.158 tracks/csharp/generators/Exercises/BookStore.cs
trackler-2.2.1.157 tracks/csharp/generators/Exercises/BookStore.cs
trackler-2.2.1.156 tracks/csharp/generators/Exercises/BookStore.cs
trackler-2.2.1.155 tracks/csharp/generators/Exercises/BookStore.cs
trackler-2.2.1.154 tracks/csharp/generators/Exercises/BookStore.cs
trackler-2.2.1.153 tracks/csharp/generators/Exercises/BookStore.cs
trackler-2.2.1.152 tracks/csharp/generators/Exercises/BookStore.cs