Xunit in asp.net core
I'm new at asp.net and moq and xunit test, I want to create a test case for my asp.net project. I have the service file that is CRUD action, I have been written for Create Method it's Ok but at…
I'm new at asp.net and moq and xunit test, I want to create a test case for my asp.net project. I have the service file that is CRUD action, I have been written for Create Method it's Ok but at…
I am trying to run a test case and trying to pass two schedules inside like below: var itemToAdd = new ScheduleInputItemDto { Start = DateTime.UtcNow, End = DateTime.UtcNow.AddHours(1), ProdType = "Prod1" }; var response = await Task.WhenAll(addItemRequest.Post(itemToAdd, false), addItemRequest.Post(itemToAdd,…
We have an old ASP.NET application. We have an image element on one of the pages. For the security purpose we would like to stream the image instead of a direct reference. However, after the data link is generated from…
I'm working with two API's which are being used to download large documents from an external system. I call API 1 with some information about a document to be retrieved, API 1 then calls API 2 with that same information…
I am getting two lists in my function. In first list I am getting list of all users for particular operation it's code is as per below : Here in result I am getting full list of all users. using…
I inherited this code base in which I need to pass extra property to the controller. This field happens to be a select dropdown for users to select yes or no. I need to pass that value to the controller.…
When I try to get form posted data from a pop-up that is within the actual form (column_1 and column_2), the data will not be available. All other ones outside of the pop-up work fine (txt_startdate and chxShowDelete). <script> $(function…
@MarkPflug I have a requirement to read 12 columns out of 45 - 85 total columns. This is from multiple csv files (in the hundreds). But here is the problem, a lot of the times a column or two will…
I have a datagrid on the asp.net page. I need to generate the column name of the datagrid when the user clicking the button. I found it on the web ASP.Net Datagrid Get Column Index from Column Name but it…
Controller: [HttpGet] [Route("MIDKalorimetar/Delete/{Id}/{Id2}/{Id3}/{Id4}/{Id5}")] public async Task<IActionResult> Delete(DeleteKalorimetarVM modelVM) { var model = await _db.ParametriMjerila.Where(x => x.Id == modelVM.Id).Include(d => d.Id == modelVM.Id2).Include(x=>x.Id == modelVM.Id3).Include(x => x.Id == modelVM.Id4).Include(x => x.Id == modelVM.Id5).FirstOrDefaultAsync(); return PartialView("Delete", model); } [HttpPost] public async Task<IActionResult>…