Exemple #1
0
        public async Task GetDrain_HostNotRunning_ReturnsServiceUnavailable()
        {
            var scriptHostManagerMock = new Mock <IScriptHostManager>(MockBehavior.Strict);

            var result = (StatusCodeResult)await _hostController.Drain(scriptHostManagerMock.Object);

            Assert.Equal(StatusCodes.Status503ServiceUnavailable, result.StatusCode);
        }