添加项目文件。
This commit is contained in:
31
Epost.TestToolsWeb.Tests/Controllers/HomeControllerTest.cs
Normal file
31
Epost.TestToolsWeb.Tests/Controllers/HomeControllerTest.cs
Normal file
@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Web.Mvc;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using Epost.TestToolsWeb;
|
||||
using Epost.Model;
|
||||
|
||||
using Epost.Common;
|
||||
using System.Configuration;
|
||||
using Epost.BLL;
|
||||
using System.Data;
|
||||
using Epost.DAL.Cache;
|
||||
using static Epost.Common.LogHelper;
|
||||
|
||||
namespace Epost.TestToolsWeb.Tests.Controllers
|
||||
{
|
||||
|
||||
[TestClass]
|
||||
public class HomeControllerTest
|
||||
{
|
||||
OrderBLL bll = new OrderBLL();
|
||||
WmsTaskBLL wmsbll = new WmsTaskBLL();
|
||||
AddressstorageBLL addrBLL = new AddressstorageBLL();
|
||||
CommandBLL combll = new CommandBLL();
|
||||
ScanModelCacheDAL scanCacheDAL = new ScanModelCacheDAL();
|
||||
JobModelCacheDAL JobCache = new JobModelCacheDAL();
|
||||
|
||||
}
|
||||
}
|
32
Epost.TestToolsWeb.Tests/Controllers/UnitTest1.cs
Normal file
32
Epost.TestToolsWeb.Tests/Controllers/UnitTest1.cs
Normal file
@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using Epost.BLL;
|
||||
using Epost.Model;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Epost.DAL.Cache;
|
||||
using Epost.Common;
|
||||
using System.Web.Helpers;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
|
||||
namespace Epost.TestToolsWeb.Tests.Controllers
|
||||
{
|
||||
[TestClass]
|
||||
public class UnitTest1
|
||||
{
|
||||
OrderBLL bll = new OrderBLL();
|
||||
[TestMethod]
|
||||
public void d()
|
||||
{
|
||||
string sku = "211100";
|
||||
if (sku.Substring(0, 1) == "2" && sku.Substring(1, 1) != "5")
|
||||
{
|
||||
if (sku.Length >= 7)
|
||||
{
|
||||
sku = sku.Substring(1, 6);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
11
Epost.TestToolsWeb.Tests/Controllers/packages.config
Normal file
11
Epost.TestToolsWeb.Tests/Controllers/packages.config
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Microsoft.AspNet.Mvc" version="5.2.3" targetFramework="net452" />
|
||||
<package id="Microsoft.AspNet.Mvc.zh-Hans" version="5.2.3" targetFramework="net452" />
|
||||
<package id="Microsoft.AspNet.Razor" version="3.2.3" targetFramework="net452" />
|
||||
<package id="Microsoft.AspNet.Razor.zh-Hans" version="3.2.3" targetFramework="net452" />
|
||||
<package id="Microsoft.AspNet.WebPages" version="3.2.3" targetFramework="net452" />
|
||||
<package id="Microsoft.AspNet.WebPages.zh-Hans" version="3.2.3" targetFramework="net452" />
|
||||
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net452" />
|
||||
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net452" />
|
||||
</packages>
|
Reference in New Issue
Block a user