AzureWebFarm.Tests.Services.BackgroundWorkerServiceShould.Update_while_executable_is_running C# (CSharp) Method

Update_while_executable_is_running() private method

private Update_while_executable_is_running ( ) : void
return void
        public void Update_while_executable_is_running()
        {
            ArrangeTestApp(4, SiteName);

            // Update multiple times to make sure that when the executable is disposed while running it doesn't throw an exception
            _service.Update(SiteName);
            _service.Update(SiteName);
            _service.Update(SiteName);

            _service.Wait(TimeSpan.FromSeconds(1));
            AssertAppWasRun(SiteName, 4, "4");
        }