Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Test first

593 views

Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Test first

  1. 1. Test-firstFunctional-firstWeb API
  2. 2. Ryan RileySoftware Developer WebApiContribLogos Bible Software WebApiKoans F#x Frank
  3. 3. A Brief History ofWeb API
  4. 4. What is WebAPI?MVC http://blogs.msdn.com/b/kiranchalla/archive/2012/05/05 /asp-net-mvc4-web-api-stack-diagram.aspx
  5. 5. What is WebAPI?System.Net.Http http://blogs.msdn.com/b/kiranchalla/archive/2012/05/05 /asp-net-mvc4-web-api-stack-diagram.aspx
  6. 6. What is WebAPI?Hosting http://blogs.msdn.com/b/kiranchalla/archive/2012/05/05 /asp-net-mvc4-web-api-stack-diagram.aspx
  7. 7. Unit Testing withHttpClient &HttpServer
  8. 8. Too manyconcerns1. Routing2. Authentication/Authorization3. Other HttpConfiguration settings4. Action selection5. Action result6. Use of MessageHandlers7. HttpResponseMessage details8. Content formatting
  9. 9. Focus Your Tests
  10. 10. What’s the base?HttpRequestMessage ->HttpResponseMessage
  11. 11. Coincidence?
  12. 12. Coincidence?
  13. 13. Why focus onthis onefunction?
  14. 14. The Boundary Service Client Boundary Domain (HTTP)
  15. 15. Is this reallyuseful?
  16. 16. Building withfunctions
  17. 17. Contact ManagerRedux
  18. 18. Re-integration
  19. 19. Going Deeper
  20. 20. ApiRouterOne of many contributions from Darrel MillerRouting via HttpMessageHandler (a.k.a. function)Goal: full control over resource routingGoal: nested resources
  21. 21. Functions all theway!Could you build an API using only MessageHandlers?Could you build an API with functions only?
  22. 22. FrankWrap in an HttpMessageHandlerF# for first-class function supportBarely scratches the surface
  23. 23. Summary
  24. 24. Questions?
  25. 25. Thank you http://spkr8.com/t/13571

×