Add authentication

This commit is contained in:
Robert Marshall 2020-01-03 13:32:20 +00:00
parent 8f0c4c0a45
commit a2d84e182d
11 changed files with 206 additions and 21 deletions

View 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();
}
}
}