32 lines
619 B
C#
32 lines
619 B
C#
using Autofac;
|
|
using LittleCow.Core.Infrastructure;
|
|
using MAX.Core.Autofac;
|
|
using MAX.Core.Cryptography;
|
|
using MAX.Core.DependencyInjection;
|
|
using Store.Client;
|
|
using Store.Client.Apis;
|
|
using Store.Client.HttpExtension;
|
|
using Store.Client.Services;
|
|
|
|
namespace Store.Test;
|
|
|
|
public class Tests
|
|
{
|
|
[SetUp]
|
|
public void Setup()
|
|
{
|
|
Bootstrap.Builder();
|
|
}
|
|
|
|
[Test]
|
|
public void TestUserLogin()
|
|
{
|
|
IocManager.Resolve<UserService>().Login(new Framework.Models.UserInfo
|
|
{
|
|
UserName = "18990991234",
|
|
Password = "18990991234"
|
|
});
|
|
//new UserApi().Login("18990991234", MD5Helper.Md5_Lower32("18990991234"));
|
|
}
|
|
|
|
} |