Esempio n. 1
0
        /* test the modele
         * Language
         */

        public void testLanguage()
        {
            TranslationService tr   = new TranslationService();
            var iTranslationService = new Mock <ITranslationService>();

            iTranslationService.Setup(L => L.testTranslation("tested")).Returns(true);
        }
        public static TranslationService GetRepository()
        {
            // Create the underlying database access class instance when the service is instantiated.
            // This assumes a connection string named 'Translation' to exist in the configuration file
            // for the client application.

            db = new Database("Translation");
            return service ?? (service = new TranslationService());
        }
        public static TranslationService GetRepository()
        {
            // Create the underlying database access class instance when the service is instantiated.
            // This assumes a connection string named 'Translation' to exist in the configuration file
            // for the client application.

            db = new Database("Translation");
            return(service ?? (service = new TranslationService()));
        }
Esempio n. 4
0
 /* test the modele
  * Language
  */
 public void testLanguage()
 {
     TranslationService tr = new TranslationService();
     var iTranslationService = new Mock<ITranslationService>();
     iTranslationService.Setup(L => L.testTranslation("tested")).Returns(true);
 }