public void Class_with_IApplication_can_have_parameters() { var withApplication = new WithApplication(); var app = Build(b => b .Run(withApplication.App, "200 WithApplication", "Foo!") ); var callResult = AppUtils.Call(app); Assert.That(callResult.Status, Is.EqualTo("200 WithApplication")); }
public void Class_with_IApplication_can_be_used_by_AppBuilder() { var withApplication = new WithApplication(); var app = Build(b => b .Run(withApplication.App) ); var callResult = AppUtils.Call(app); Assert.That(callResult.Status, Is.EqualTo("200 WithApplication")); }