is a community that was established to collect and organize valuable web information. Our technical staff have selected and indexed information and courses that they feel will help you stay current on best practices across the SDLC.

318 Articles match "Books"

  • The Best from DevelopMentor

    318 Results found
    Showing page 1 of 32   Next >

  • Book review: Silverlight 4 in Action
    Reviewing this book took some time as it weighs in at a hefty 798 pages, who ever said that Silverlight was a small products? That is a lot of material but then the book doesn't assume any prior knowledge of Silverlight at all. The book is divided into 25 chapters in 3 different sections. In these cases the book is a nice point to get started but no more than that and getting additional information on the Internet is pretty much a requirement. Pete has a pretty solid coverage of the material the book will help you understand what you need to know. Enjoy!
    Maurice de Bejeir - Wednesday, September 29, 2010
  • Books on Windows Phone 7 development
    Here are some books for people that are looking to get into Windows Phone 7 development (some are pre-order only at this time): Microsoft XNA Framework Programming for Windows Phone 7. Microsoft Silverlight Programming for Windows Phone 7. Windows Phone 7 Plain & Simple. Developing Windows Phone 7 Applications. Windows Phone 7
    The Blomsma Code - Thursday, December 2, 2010
  • Using SignalR for real time data updates
    In the following code the clients starts the communications hub and passed the loadBooks callback to load the books as soon as the communications are initialized. $( function () {. then( function (books) {. each(books, function () {. appendTo(ul); renderBook(newLi, this ); }); }); }; function renderBook(li, book) {. var books = _repo.GetBooks(); return books; }. }. e.preventDefault(); var form = $( this ); var book = {. val(). }; hub.updateBook(book); }); hub.bookUpdated = function (book) {. public void updateBook(Book book). {.
    Maurice de Bejeir - Wednesday, July 25, 2012
  • Unit testing a ASP.NET WebAPI controller
    Testing a simple ApiController that gets data Suppose we have the following ASP.NET WebAPI Controller with two Get methods, the first returns the complete list of books and the second returns the book with the requested ID. 14: 15: // GET api/books. 24: var book = _repo.GetBook(id); 25: 26: if (book == null ). 30: 31: return Request.CreateResponse(HttpStatusCode.OK, book); 32: }. The Get() method that returns all books is easy enough to test. There are no dependencies on WebAPI bits, all it does is return a enumeration of books. 8: 9: }.
    Maurice de Bejeir - Sunday, May 12, 2013
  • Unit testing a ASP.NET WebAPI 2 controller
    1: // GET api/books. 10: var book = _repo.GetBook(id); 11: 12: if (book == null ). 16: 17: return Ok(book); 18: }. 11: var response = actionResult as OkNegotiatedContentResult ; 12: Assert.IsNotNull(response); 13: var books = response.Content; 14: Assert.AreEqual(5, books.Count()); 15: }. 2: public IHttpActionResult Put( int id, Book book). 8: 9: return Ok(_repo.UpdateBook(book)); 10: }. 1: // POST api/books. 2: public IHttpActionResult Post(Book book). 8: var actionResult = controller.Post( new Book. 13: {.
    Maurice de Bejeir - Wednesday, November 13, 2013
  • Unit testing code depending on the ASP.NET #WebApi HttpClient
    In this case the client application contains the following class to load books from the REST WebAPI controller: 1: public class BooksClient. 19: 20: public Book GetBook( int id). 27: 28: public Tuple PostBook(Book book). 30: var response = _httpClient.PostAsJsonAsync(BaseUrl.ToString(), book).Result; This class uses the HttpClient to request the data from the service and extracts the books from the body before returning them. The GetBooks() function gets all books from the REST service. 5: var books = new []. 14: {. Result; 18: }. 21: {.
    Maurice de Bejeir - Monday, May 20, 2013
  • Getting started with RavenDB in an ASP.NET MVC application
    In this demo I am going to use a simple book application to show how simple it is to get started with RavenDB. The book class is pretty basic and looks like this; 1: namespace RavenMvc.Models. 3: public class Book. list of books application. Showing a lost of books is real simple. 4: // GET: /Books/. 9: var books = session.Query ().ToList(); ToList(); 10: return View(books); 11: }. Instead RavenDB will just check to see of it knows about books and if so return them. Loading a single book. 2: // GET: /Books/Details/5.
    Maurice de Bejeir - Sunday, November 25, 2012
  • Maurice de Beijer: Integrating the #WebAPI HttpClient and ApiController in a single test
    Testing the getting of books The code used to test getting the books from the ApiController is actually quite similar to testing just the client code. In this case it uses an in memory repository so I know exactly that the same set of 5 books are returned every time. 11: var books = client.GetBooks(); 12: 13: // Assert. The test of adding a new book. Adding a new book in an integration test is just as simple: 1: [TestMethod]. 13: var response = client.PostBook(book); 14: 15: // Assert. 17: client.PutBook(book); 18: 19: // Assert. Sweet
    Maurice de Bejeir - Monday, May 27, 2013
  • Verifying JavaScript with JSLint and Visual Studio
    If you’re confused about why it’s saying such simple things like == and ++ are errors, read Douglas’ book or at least read the documentation for JSLint and the other essays on his web site. Douglas Crockford’s JavaScript: The Good Parts is a short, but informative read that all JavaScript developers should probably pick up. In it, he describes what parts of the JavaScript language we should be using (the good parts) and what parts we shouldn’t (the bad and the awful parts). finally decided to make this an almost instantaneous process.
    Jason Diamond - Saturday, August 9, 2008
  • Maurice de Beijer: Querying RavenDB databases
    In my original online example you might have noticed that the books aren't ordered. 5: var books = session.Query (). 7: ToList(); 8: 9: return View(books); 10: }. 5: var books = from book in session.Query (). 7: select book; 8: 9: return View(books.ToList()); 10: }. Just want books from an author starting with “A”? The following view search for books where the title or author starts with the passed string. 5: var books = session.Query (). 8: ToList(); 9: 10: return View( "Index" , books); 11: }. 11: }. 11: }.
    Maurice de Bejeir - Monday, December 17, 2012
<< 1 2 3 ... 31 32 >>