public void CreateUser() { User_Data user_Data = new User_Data(); var res = user_Data.CreateUser(new ModelsClass.MethodParameters.CreateUser() { Email = "*****@*****.**", IdNumber = 1321654, IdType = 2, Name = "Prueba_1", PassWord = "******", Surname = "Apellido1" }); Assert.Pass(); }
//[ProducesResponseType(typeof(CreateUser))] public ActionResult CreateUser(CreateUser input) { if (ModelState.IsValid) { User_Data user_Business = new User_Data(); var output = user_Business.CreateUser(input); switch (output.Result) { case (Result.error): return(StatusCode(500, output)); default: return(Ok(output)); } } else { return(BadRequest()); } }