Пример #1
0
        public async void testGetEntity()
        {
            var entities = new EntityHandler();

            APIGatewayProxyRequest request = new APIGatewayProxyRequest();

            request.PathParameters = new Dictionary <string, string>()
            {
                { "id", "10001" }
            };

            // TODO: Assert effect of not setting needed properties on request
            var    context = new TestLambdaContext();
            object entity  = await entities.getEntityByID(request, context);

            Assert.NotNull(entity.ToString());
        }