Exemplo n.º 1
0
        public void GetPhonebook_GivenValidPhonebook_ShouldAddPhonebook()
        {
            var phonebook = new Phonebook {
                Name = "Family"
            };

            var result = _PhonebookService.AddPhonebook(phonebook);

            Assert.True(result.Name.Equals("Family"));
        }
Exemplo n.º 2
0
 public ActionResult <Phonebook> Post([FromBody] Phonebook phonebook)
 {
     return(_phonebookService.AddPhonebook(phonebook));
 }