﻿// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using Cake.Core;

namespace Cake.Frosting.Tests
{
    public sealed class FakeLifetime : FrostingLifetime
    {
        public int SetupCount { get; set; }
        public int TeardownCount { get; set; }

        public override void Setup(ICakeContext context)
        {
            SetupCount++;
        }

        public override void Teardown(ICakeContext context, ITeardownContext info)
        {
            TeardownCount++;
        }
    }
}
