From 9341e63dcc77069a5795e561c7cd4121b0ed6684 Mon Sep 17 00:00:00 2001 From: Argo-Surface Date: Wed, 16 Jan 2019 16:40:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E5=85=83=E6=B5=8B=E8=AF=95=EF=BC=9ADi?= =?UTF-8?q?ctsTest=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B=E5=85=88=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E6=95=B0=E6=8D=AE=EF=BC=8C=E5=86=8D=E6=8F=92=E5=85=A5?= =?UTF-8?q?=EF=BC=8C=E5=86=8D=E5=88=A0=E9=99=A4=E4=BF=9D=E8=AF=81=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=94=A8=E4=BE=8B=E6=88=90=E5=8A=9F=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- UnitTest/Bootstrap.Admin/Api/DictsTest.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UnitTest/Bootstrap.Admin/Api/DictsTest.cs b/UnitTest/Bootstrap.Admin/Api/DictsTest.cs index feab6195..b7277736 100644 --- a/UnitTest/Bootstrap.Admin/Api/DictsTest.cs +++ b/UnitTest/Bootstrap.Admin/Api/DictsTest.cs @@ -26,10 +26,12 @@ namespace Bootstrap.Admin.Api [Fact] public async void PostAndDelete_Ok() { + var dict = new Dict(); + dict.Delete(new Dict().RetrieveDicts().Where(d => d.Category == "UnitTest-Category").Select(d => d.Id)); + var ret = await Client.PostAsJsonAsync("", new BootstrapDict() { Name = "UnitTest-Dict", Category = "UnitTest-Category", Code = "0", Define = 0 }); Assert.True(ret); - var dict = new Dict(); var ids = dict.RetrieveDicts().Where(d => d.Name == "UnitTest-Dict").Select(d => d.Id); Assert.True(await Client.DeleteAsJsonAsync, bool>("", ids)); }