Skip to content

Commit

Permalink
style: format code with dotnet format
Browse files Browse the repository at this point in the history
  • Loading branch information
raczu committed Jun 6, 2024
1 parent 7769327 commit 81580e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public void Login_WhenUserExistsAndPasswordIsCorrect_ShouldReturnUser()
};

var result = _service.Login(request);

Assert.IsNotNull(result);
Assert.IsInstanceOfType(result, typeof(User));
}
Expand Down Expand Up @@ -103,7 +104,7 @@ public void Register_WhenUserWithPhoneAlreadyExists_ShouldThrowBadRequestExcepti
Username = "jstark",
Phone = "+123 456789"
};

Assert.ThrowsException<BadRequestException>(() => _service.Register(request));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace ReasnAPI.Models.Authentication;

public class TokenPayload
{
public string TokenType { get; set; }
public string AccessToken { get; set; }
public string TokenType { get; set; } = null!;
public string AccessToken { get; set; } = null!;
public int ExpiresIn { get; set; }
}

0 comments on commit 81580e4

Please sign in to comment.