refactor(#IW4W8): 访问日志增加IP查询条件单元测试更新

#Comment
更新单元测试
comment #IW4W8

#Issue
link https://gitee.com/LongbowEnterprise/dashboard/issues?id=IW4W8
This commit is contained in:
Argo Zhang 2019-05-05 17:54:44 +08:00
parent 558ace13c7
commit fc8d565f8f
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ namespace Bootstrap.DataAccess
RequestUrl = "~/Home/Index"
};
log.Save(log);
Assert.NotNull(log.Retrieves(new PaginationOption() { Limit = 20 }, null, null));
Assert.NotNull(log.Retrieves(new PaginationOption() { Limit = 20 }, null, null, null));
}
}
}

View File

@ -37,7 +37,7 @@ namespace Bootstrap.DataAccess
RequestUrl = "~/Home/Index"
};
log.Save(log);
Assert.NotEmpty(log.Retrieves(new PaginationOption() { Limit = 20, Offset = 0, Order = "desc", Sort = "LogTime" }, null, null).Items);
Assert.NotEmpty(log.Retrieves(new PaginationOption() { Limit = 20, Offset = 0, Order = "desc", Sort = "LogTime" }, null, null, null).Items);
}
}
}