public async Task GetCourseByInvalidId() { var GetSingleCourse = CourseHelper.GetUserByInvalidId(); var model = new GetCourseByIdQueryRequest { TransferObject = GetSingleCourse }; var result = await _mediator.Send(model);//I need to revice this, Entity count or length will be 0 so I could use ShouldBeGreaterThan result.Status.ShouldBe(EnumOperationResult.None); }
public async Task GetAllCourses() { try { var getAllCourses = CourseHelper.GetAllCourses(); var model = new GetAllCoursesQueryRequest { TransferObject = getAllCourses }; var result = await _mediator.Send(model); result.Status.ShouldBe(EnumOperationResult.Ok); } catch (Exception ex) { Console.WriteLine(ex.Message); } }