public void TestAvailable(bool available) { inner.Available().Returns(available); Assert.That(middleware.Available(), Is.EqualTo(available)); inner.Received(1).Available(); }