예제 #1
0
        public void GetPhonebook_GivenValidPhonebook_ShouldAddPhonebook()
        {
            var phonebook = new Phonebook {
                Name = "Family"
            };

            var result = _PhonebookService.AddPhonebook(phonebook);

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