refactor(#IW4W8): 访问日志增加IP查询条件单元测试更新
#Comment 更新单元测试 comment #IW4W8 #Issue link https://gitee.com/LongbowEnterprise/dashboard/issues?id=IW4W8
This commit is contained in:
parent
558ace13c7
commit
fc8d565f8f
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue