public async Task Api_TestimonialMessage_BatchCreate()
        {
            for (int i = 1; i < 100; i++)
            {
                var cmd = new TestimonialMessageDTO
                {
                    Name    = "batchTest_testimonial_name",
                    Message = $"test_message_{i}",
                    Type    = $"test_type_{i}"
                };
                var hr = await TestimonialMessageApi.CreateMessageAsync(cmd).ConfigureAwait(false);

                var rs = await hr.GetResultAsync().ConfigureAwait(false);

                Assert.IsTrue(rs.IsSuccess());
                Assert.IsNotNull(rs);
            }
        }
Beispiel #2
0
        // *******************************************************************************************************************************
        #region -  CRUD  -

        public Task <string> InsertMessageAsync(TestimonialMessageDTO dto)
        => DB.TestimonialMessages.TryInsertOneAsync(dto);