Add authentication
This commit is contained in:
parent
8f0c4c0a45
commit
a2d84e182d
11 changed files with 206 additions and 21 deletions
17
Website.Tests/Models/UserTests.cs
Normal file
17
Website.Tests/Models/UserTests.cs
Normal file
|
@ -0,0 +1,17 @@
|
|||
using FluentAssertions;
|
||||
using Website.Models;
|
||||
using Xunit;
|
||||
|
||||
namespace Website.Tests.Models {
|
||||
public class UserTests {
|
||||
[Fact]
|
||||
public void ValidatePassword_WithValidSHA256Input_ReturnsTrue() {
|
||||
var user = new User {
|
||||
Password= "5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8"
|
||||
};
|
||||
|
||||
|
||||
user.ValidatePassword("password").Should().BeTrue();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue