test: SaveSettings 接口定义变更

This commit is contained in:
Argo Zhang 2020-01-19 11:49:27 +08:00
parent b0ac8c8545
commit f66aac9d30
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 15 additions and 15 deletions

View File

@ -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",
@ -41,10 +41,10 @@ namespace Bootstrap.DataAccess.SqlServer
Define = 1 Define = 1
}; };
// 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 }));
} }
@ -191,7 +191,7 @@ namespace Bootstrap.DataAccess.SqlServer
#region Private Class For Test #region Private Class For Test
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
private class BaiDuIPLocator private class BaiDuIPLocator
{ {
@ -206,7 +206,7 @@ namespace Bootstrap.DataAccess.SqlServer
public int Status { get; set; } public int Status { get; set; }
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
public override string ToString() public override string ToString()
@ -218,28 +218,28 @@ namespace Bootstrap.DataAccess.SqlServer
private class JuheIPLocator private class JuheIPLocator
{ {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
public string ResultCode { get; set; } public string ResultCode { get; set; }
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
public string Reason { get; set; } public string Reason { get; set; }
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
public JuheIPLocatorResult Result { get; set; } public JuheIPLocatorResult Result { get; set; }
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
/// <value></value> /// <value></value>
public int Error_Code { get; set; } public int Error_Code { get; set; }
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
public override string ToString() public override string ToString()
@ -251,27 +251,27 @@ namespace Bootstrap.DataAccess.SqlServer
private class JuheIPLocatorResult private class JuheIPLocatorResult
{ {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
public string Country { get; set; } public string Country { get; set; }
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
public string Province { get; set; } public string Province { get; set; }
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
public string City { get; set; } public string City { get; set; }
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
public string Isp { get; set; } public string Isp { get; set; }
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
public override string ToString() public override string ToString()