public void InitializeMethodIsCalledWithProperties()
 {
     var serverFactory = new InitializePatternTwo();
     var adapter = new ServerFactoryAdapter(serverFactory);
     IAppBuilder builder = new AppBuilderFactory().Create();
     adapter.Initialize(builder);
     builder.Properties["called"].ShouldBe(serverFactory);
 }
 public void CreateMethodCalledWithAppAndProperties()
 {
     var serverFactory = new CreatePatternOne();
     var adapter = new ServerFactoryAdapter(serverFactory);
     IAppBuilder builder = new AppBuilderFactory().Create();
     IDisposable disposable = adapter.Create(builder);
     builder.Properties["called"].ShouldBe(serverFactory);
     builder.Properties["app"].ShouldNotBe(null);
     builder.Properties["properties"].ShouldBeSameAs(builder.Properties);
     disposable.ShouldBe(serverFactory);
 }