// ReSharper disable once InconsistentNaming public async void Get_CaseWithNotExistingCallId_ShouldReturnBedRequest() { //Arrange var caseFolderId = new Guid("81fa8ce9-e2e6-433c-a9fb-5dcd5fd25245"); var userId = new Guid("81fa8ce9-e2e6-433c-a9fb-5dcd5fd12123"); _unitOfWork.Begin(); //Action SetCurrentUserId(userId); demoResult <CaseDto> caseCardResult = await _caseController.GetCase(caseFolderId); //Assert caseCardResult.Result.ShouldBeOfType <demoErrorResult>(); }
// ReSharper disable once InconsistentNaming public async void Get_Case_ShouldExists() { //arrange _unitOfWork.Begin(); var caseType = _caseTypeRepository.GetFirst(); var userId = Guid.NewGuid(); var caseFolder = new CaseFolder(); caseFolder.AddCaseCard(caseType, userId); await _caseFolderRepository.Add(caseFolder); await _unitOfWork.CommitAsync(); //action SetCurrentUserId(userId); demoResult <CaseDto> caseCardResult = await _caseController.GetCase(caseFolder.Id); //Assert caseCardResult.Result.ShouldBeOfType <demoOkResult <CaseDto> >(); }