Example #1
0
        private async Task ResetDatabase()
        {
            var context = _workContext.WithTag(_tag);

            await _admin.ResetDatabase(context);

            await _admin.SetHistorySizeConfiguration(context, 1000);
        }
Example #2
0
        public async Task <IActionResult> SetHistorySizeConfiguration(int size)
        {
            RequestContext requestContext = this.HttpContext.GetRequestContext();
            var            context        = requestContext.Context.WithTag(_tag);

            await _administration.SetHistorySizeConfiguration(context, size);

            return(new StandardActionResult(context));
        }
Example #3
0
        public async Task SetHistorySizeConfigurationSuccessTest()
        {
            var context = _workContext.WithTag(_tag);

            const int newSize = 9999;
            await _admin.SetHistorySizeConfiguration(context, newSize);

            int?size = await _admin.GetHistorySizeConfiguration(context);

            size.Should().NotBeNull();
            size.Value.Should().Be(newSize);
        }