Esempio n. 1
0
        public void KuzzleConstructorTest()
        {
            KuzzleSdk.Kuzzle kuzzle2 = new KuzzleSdk.Kuzzle(_protocol.Object);

            Assert.IsType <AuthController>(_kuzzle.Auth);
            Assert.IsType <CollectionController>(_kuzzle.Collection);
            Assert.IsType <DocumentController>(_kuzzle.Document);
            Assert.IsType <IndexController>(_kuzzle.Index);
            Assert.IsType <RealtimeController>(_kuzzle.Realtime);
            Assert.IsType <ServerController>(_kuzzle.Server);
            Assert.IsType <OfflineManager>(_kuzzle.Offline);
            Assert.IsType <KuzzleEventHandler>(_kuzzle.EventHandler);
            Assert.NotEqual(_kuzzle.InstanceId, kuzzle2.InstanceId);
        }
Esempio n. 2
0
 public KuzzleTest()
 {
     _protocol = new Mock <AbstractProtocol>();
     _kuzzle   = new KuzzleSdk.Kuzzle(_protocol.Object);
 }