Beispiel #1
0
        public async Task GetEntries()
        {
            IActionResult result = await _phonebookController.GetEntries(_phonebookId);

            OkObjectResult okResult = result as OkObjectResult;

            Assert.Equal(200, okResult.StatusCode);
        }
        public void CanGetPhonebookEntries()
        {
            var result = controller.GetEntries(phonebook.Id, string.Empty);

            Assert.AreEqual(2, result.Value.Count());
        }