Example #1
0
        public void UpdateContactInfoNoteWrongAboutUsEmpty()
        {
            var contactInfoNote = new ZooInfoController.ContactInfoNoteResult
            {
                ContactInfoNote = ""
            };

            ZooInfoController.UpdateContactInfoNote(contactInfoNote, (int)Languages.en);
        }
Example #2
0
        public void UpdateContactInfoNoteLangaugeNotExist()
        {
            var contactInfoNote = new ZooInfoController.ContactInfoNoteResult
            {
                ContactInfoNote = "This is the new note!"
            };

            ZooInfoController.UpdateContactInfoNote(contactInfoNote, nonExistantLangauge);
        }
Example #3
0
        public void UpdateContactInfoNoteValidInput()
        {
            var ciNote = ZooInfoController.GetContactInfoNote((int)Languages.en);

            var oldNote = ciNote;

            var newContactInfoNote = new ZooInfoController.ContactInfoNoteResult
            {
                ContactInfoNote = "This is the new note!"
            };

            ZooInfoController.UpdateContactInfoNote(newContactInfoNote, (int)Languages.en);

            ciNote = ZooInfoController.GetContactInfoNote((int)Languages.en);
            Assert.IsTrue(ciNote.ContactInfoNote == newContactInfoNote.ContactInfoNote);
            Assert.IsFalse(ciNote.ContactInfoNote == oldNote.ContactInfoNote);
        }