summaryrefslogtreecommitdiff
path: root/product/Service/Infrastructure/Updating/CancelUpdateSpecs.cs
blob: ff5be66ead041bcdf1c198c049fde3187ba06078 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using developwithpassion.bdd.contexts;
using Gorilla.Commons.Testing;
using MoMoney.Service.Infrastructure.Updating;

namespace MoMoney.Tasks.infrastructure.updating
{
    public class CancelUpdateSpecs
    {
    }

    public class when_cancelling_an_update_of_the_application : concerns_for<ICancelUpdate, CancelUpdate>
    {
        it should_stop_downloading_the_update = () => deployment.was_told_to(x => x.UpdateAsyncCancel());

        context c = () => { deployment = the_dependency<IDeployment>(); };

        because b = () => sut.run();

        static IDeployment deployment;
    }
}