Esempio n. 1
0
        public async Task Insert()
        {
            for (int i = 0; i < 99; i++)
            {
                RequestInfo request = new RequestInfo
                {
                    CreateTime   = new DateTime(2020, 2, 17, 14, 24, 15, DateTimeKind.Local),
                    IP           = "192.168.2.1",
                    Method       = "GET",
                    Node         = "Log",
                    Milliseconds = new Random().Next(1, 9999),
                    Route        = "/User/Login",
                    Url          = "/User/Login/AAA",
                    StatusCode   = 200
                };

                await _storage.AddRequestInfoAsync(request);
            }

            Assert.IsTrue(true);
        }