public async Task GetConversationMessagesReturns503IfStorageUnavailable() { mockStore.Setup(store => store.GetConversationMessages(It.IsAny <string>(), It.IsAny <string>(), It.IsAny <string>(), 50)) .ThrowsAsync(new StorageUnavailableException("Storage is unavailable!")); TestUtils.AssertStatusCode(HttpStatusCode.ServiceUnavailable, await myController.Get("amansour_nbilal", "11", "11", 50)); }