title: How to inject dependencies into an asmx webservice webmethod?
body: <p>I have an asmx webserice with this method</p>
  
  <pre><code>[WebMethod]
  double GetBookPrice(int bookID)
  {
      //instantiates a DiscountService,DeliveryService and a couple of other services
  
      //uses various methods of these services to calculate the price
      //e.g. DiscountService.CalculateDiscount(book)
  
  }
  </code></pre>
  
  <p>There are 4 services that are dependencies of this method. </p>
  
  <p>How do now test this method? I will need to inject these dependencies? or should I even do that ? the client is simply sending an int to check the price.</p>
  
  <p>Thanks</p>