roadie/Roadie.Api.Library.Tests/TokenHelperTests.cs

26 lines
549 B
C#
Raw Permalink Normal View History

2019-08-04 16:30:19 +00:00
using Roadie.Api.Services;
using Roadie.Library.Identity;
using System;
using System.Diagnostics;
using Xunit;
namespace Roadie.Library.Tests
{
public class TokenHelperTests
{
[Fact]
public void GeneratePlayToken()
{
var sw = Stopwatch.StartNew();
2019-11-28 17:38:26 +00:00
var token = ServiceBase.TrackPlayToken(new User
2019-08-04 16:30:19 +00:00
{
Id = 1,
CreatedDate = DateTime.UtcNow
}, Guid.NewGuid());
sw.Stop();
Assert.NotNull(token);
}
}
}