Skip to content
Snippets Groups Projects
Select Git revision
  • 5bea7e236c76c1f8fcc4307c872b978de30c83c2
  • master default
2 results

TestUnit.cs

Blame
  • user avatar
    Risav Karna authored
    5bea7e23
    History
    TestUnit.cs 716 B
    using ConnectToSally;
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    
    namespace SallyConnect
    {
        class TestUnit
        {
            static void Main(string[] args) {
                String[] interfaces = new string[] { "theo" };
                String docName = "random_edit_1114717882592231.sdaf";
    
                DotNetSallyClient sallyClient = new DotNetSallyClient();
                sallyClient.registerDocument(docName, interfaces);
                System.Threading.Thread.Sleep(1000);
                if (sallyClient.isRegistered()){
                    sallyClient.sendToSally("some message");
                }
                
                Console.Read();
            }
        }
    }