Exemplo n.º 1
0
        public async void testGetAllEntities()
        {
            var handler = new EntityHandler();

            APIGatewayProxyRequest request = new APIGatewayProxyRequest();

            object result = await handler.getEntities(request);

            // TODO: Better assertion
            Assert.NotEmpty(result.ToString());
        }
Exemplo n.º 2
0
        public async void testGetMultipleEntities()
        {
            var handler = new EntityHandler();

            APIGatewayProxyRequest request = new APIGatewayProxyRequest();

            request.Body = "{ 'position.lat': { $gt: 59.29}}";

            object result = await handler.getEntities(request);

            // TODO: Better assertion
            Assert.NotEmpty(result.ToString());
        }