public void ReturnThreeResultsIfNoParameterWasProvided()
        {
            var contactsController = new ContactsController(_mockDbContext.Object);

            var result = contactsController.Get().Result;

            Assert.AreEqual(3, result.Count());
        }
        public void ReturnNotFoundIfParameterIdWasGivenButNotFound()
        {
            var id = 0;
            var contactsController = new ContactsController(_mockDbContext.Object);

            var result = contactsController.Get(id).Result;

            Assert.IsInstanceOfType(result, typeof(NotFoundResult));
        }
        public void OrderResultsAlphabetically()
        {
            var contactsController = new ContactsController(_mockDbContext.Object);

            var result = contactsController.Get().Result.ToList();

            Assert.AreEqual("Darth", result.First().FirstName);
            Assert.AreEqual("Leia", result.Skip(1).First().FirstName);
            Assert.AreEqual("Luke", result.Skip(2).First().FirstName);
        }