Ejemplo n.º 1
0
        public void CreateUser()
        {
            var lambdaContext = new Mock <ILambdaContext>();
            var apiContext    = _fixture
                                .Build <APIGatewayProxyRequest>()
                                .With(x => x.Body, "{\r\n\"name\":\"First User\",\r\n\"password\": \"babybacon\",\r\n\"country\": \"brazil\",\r\n\"isActive\":false,\r\n\"email\":\"[email protected]\",\r\n\"phone\":\"27123456789\",\r\n\"characters\":[{\r\n\"name\":\"Vancartier\",\r\n\"game\":\"wow\",\r\n\"server\":\"nemesis\"\r\n}],\r\n\"idroles\":[1],\r\n\"idclaims\":[0]\r\n}")
                                .Create();

            var result = _function.CreateAccount(apiContext, lambdaContext.Object);
        }