Пример #1
0
        static void Main(string[] args)
        {
            foreach (var apiType in apiTypes)
            {
                IHelloWorldService apiService = ApiFactory.GetHelloWorldService(apiType);

                apiService.WriteHelloWorld();
            }
        }
 public void TestDB()
 {
     try
     {
         DbAPI.WriteHelloWorld();
     }
     catch (Exception e)
     {
         Assert.Fail("Exception was thrown: ", e.Message);
     }
 }