コード例 #1
0
        public void CanViewCreate()
        {
            //Act
            var translation = new Translation
            {
                LanguageCode   = "001",
                Phrase         = "phrase to be translated",
                TranslatedText = "translated"
            };
            var result = _translationController.Save(translation);

            //Assert
            Assert.IsInstanceOf <ActionResult>(result);
            Assert.IsInstanceOf <int>(translation.TranslationID);
        }