Пример #1
0
 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"));
 }
Пример #2
0
 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"));
 }