mirror of
https://github.com/sphildreth/roadie
synced 2024-11-12 23:47:07 +00:00
26 lines
No EOL
549 B
C#
26 lines
No EOL
549 B
C#
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();
|
|
|
|
var token = ServiceBase.TrackPlayToken(new User
|
|
{
|
|
Id = 1,
|
|
CreatedDate = DateTime.UtcNow
|
|
}, Guid.NewGuid());
|
|
sw.Stop();
|
|
|
|
Assert.NotNull(token);
|
|
}
|
|
}
|
|
} |