@@ -52,7 +52,7 @@ class FacadeTest: XCTestCase {
5252 // Create the Facade, register the FacadeTestCommand to
5353 // handle 'FacadeTest' notifications
5454 let facade = Facade . getInstance ( " FacadeTestKey2 " , factory: { key in Facade ( key: key) } )
55- facade. registerCommand ( " FacadeTestNote " , closure : { FacadeTestCommand ( ) } )
55+ facade. registerCommand ( " FacadeTestNote " , factory : { FacadeTestCommand ( ) } )
5656
5757 // Send notification. The Command associated with the event
5858 // (FacadeTestCommand) will be invoked, and will multiply
@@ -80,7 +80,7 @@ class FacadeTest: XCTestCase {
8080 // Create the Facade, register the FacadeTestCommand to
8181 // handle 'FacadeTest' events
8282 let facade = Facade . getInstance ( " FacadeTestKey3 " , factory: { key in Facade ( key: key) } ) as! Facade
83- facade. registerCommand ( " FacadeTestNote " , closure : { FacadeTestCommand ( ) } )
83+ facade. registerCommand ( " FacadeTestNote " , factory : { FacadeTestCommand ( ) } )
8484 facade. removeCommand ( " FacadeTestNote " )
8585
8686 // Send notification. The Command associated with the event
@@ -200,7 +200,7 @@ class FacadeTest: XCTestCase {
200200 func testHasCommand( ) {
201201 // register the ControllerTestCommand to handle 'hasCommandTest' notes
202202 let facade = Facade . getInstance ( " FacadeTestKey10 " , factory: { key in Facade ( key: key) } )
203- facade. registerCommand ( " facadeHasCommandTest " , closure : { FacadeTestCommand ( ) } )
203+ facade. registerCommand ( " facadeHasCommandTest " , factory : { FacadeTestCommand ( ) } )
204204
205205 // test that hasCommand returns true for hasCommandTest notifications
206206 XCTAssertTrue ( facade. hasCommand ( " facadeHasCommandTest " ) , " Expecting facade.hasCommand('facadeHasCommandTest') == true " )
0 commit comments