Skip to content

Commit

Permalink
test: Create a simple and complete user model
Browse files Browse the repository at this point in the history
  • Loading branch information
bush1D3v committed Jun 10, 2024
1 parent 2eeb4cb commit b232f3a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions tests/mocks/models/user.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
use navarro_blog_api::dtos::user::CreateUserDTO;
use navarro_blog_api::dtos::user::{CreateUserDTO, UserDTO};

pub fn user() -> CreateUserDTO {
pub fn complete_user_model() -> UserDTO {
return UserDTO {
id: uuid::Uuid::new_v4().to_string(),
name: String::from("Victor Navarro"),
email: String::from("bush1d3v@gmail.com"),
password: String::from("12345678%"),
created_at: chrono::Utc::now().to_string(),
};
}

pub fn simple_user_model() -> CreateUserDTO {
return CreateUserDTO {
name: String::from("Victor Navarro"),
email: String::from("bush1d3v@gmail.com"),
Expand Down

0 comments on commit b232f3a

Please sign in to comment.