Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.57 KB | None | 0 0
  1.         public DependenciesTests()
  2.         {
  3.             _configuration = new HttpConfiguration();
  4.             _configuration.ConfigureDependencies();
  5.         }
  6.  
  7.         [Fact]
  8.         public void Configuration_Is_Valid()
  9.         {
  10.             _configuration.ValidateConfiguration();
  11.         }
  12.  
  13.         public static void ValidateConfiguration(this HttpConfiguration config)
  14.         {            
  15.             var container = config.GetDryIocContainer();
  16.             var errors = container.VerifyResolutions();          
  17.             errors.Should().BeEmpty();        
  18.         }
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27. //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement