コード例 #1
0
ファイル: AppBuilderTests.cs プロジェクト: kevinswiber/gate
 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
ファイル: AppBuilderTests.cs プロジェクト: kevinswiber/gate
 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"));
 }