GetSchemas() 공개 메소드

Return schema information for all the event collections in this project.
public GetSchemas ( ) : Newtonsoft.Json.Linq.JArray
리턴 Newtonsoft.Json.Linq.JArray
예제 #1
0
        public void GetCollectionSchemas_Success()
        {
            var client = new KeenClient(SettingsEnv);

            var expected = new JArray(); // todo: better mock return
            if (UseMocks)
            {
                var eventMock = new Mock<IEvent>();
                eventMock.Setup(m => m.GetSchemas())
                  .Returns(Task.FromResult(expected));

                client.Event = eventMock.Object;
            }

            var reply = client.GetSchemas();
            Assert.NotNull(reply);
        }