test: SaveSettings 接口定义变更
This commit is contained in:
parent
b0ac8c8545
commit
f66aac9d30
|
@ -33,7 +33,7 @@ namespace Bootstrap.DataAccess.SqlServer
|
||||||
[Fact]
|
[Fact]
|
||||||
public void SaveSettings_Ok()
|
public void SaveSettings_Ok()
|
||||||
{
|
{
|
||||||
var dict = new Dict()
|
var dict = new BootstrapDict()
|
||||||
{
|
{
|
||||||
Category = "UnitTest",
|
Category = "UnitTest",
|
||||||
Name = "SaveSettings",
|
Name = "SaveSettings",
|
||||||
|
@ -44,7 +44,7 @@ namespace Bootstrap.DataAccess.SqlServer
|
||||||
// insert
|
// insert
|
||||||
Assert.True(DictHelper.Save(dict));
|
Assert.True(DictHelper.Save(dict));
|
||||||
// update
|
// update
|
||||||
Assert.True(DictHelper.SaveSettings(dict));
|
Assert.True(DictHelper.SaveSettings(new BootstrapDict[] { dict }));
|
||||||
// delete
|
// delete
|
||||||
Assert.True(DictHelper.Delete(new string[] { dict.Id }));
|
Assert.True(DictHelper.Delete(new string[] { dict.Id }));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue