AzureWebFarm.Tests.WebFarmRoleShould.DisposeWebDeployServiceWhenStopping C# (CSharp) Method

DisposeWebDeployServiceWhenStopping() private method

private DisposeWebDeployServiceWhenStopping ( ) : void
return void
        public void DisposeWebDeployServiceWhenStopping()
        {
            var webDeployServiceDisposed = false;
            _container.Resolve<IWebDeployService>().When(s => s.Dispose()).Do(a => { webDeployServiceDisposed = true; });

            _sut.OnStop();

            Assert.That(webDeployServiceDisposed);
        }