public async void ValidId_ReturnsNotFound()
        {
            var controller = new EprController(_crisisPlanService);

            controller.ControllerContext             = new ControllerContext();
            controller.ControllerContext.HttpContext = HttpContexts.Valid_Search;

            var response = await controller.GetById("5a82f9ffcb969daa58d33378");

            Assert.IsType <NotFoundObjectResult>(response);

            var notFoundResult = response as NotFoundObjectResult;

            Assert.Equal(404, notFoundResult.StatusCode);
        }
        public async void ValidPatient_ReturnsNotFound()
        {
            var controller = new EprController(_crisisPlanService);

            controller.ControllerContext             = new ControllerContext();
            controller.ControllerContext.HttpContext = HttpContexts.Valid_Search;

            var response = await controller.GetForPatient("1234567899");

            Assert.IsType <OkObjectResult>(response);

            var okResult = response as OkObjectResult;

            Assert.Equal(200, okResult.StatusCode);

            var responseContent = okResult.Value;

            Assert.IsType <string>(responseContent);
            var viewModel = responseContent as string;

            Assert.Equal("null", viewModel);
        }
        public async void ValidPatient_ReturnsOk()
        {
            var controller = new EprController(_crisisPlanService);

            controller.ControllerContext             = new ControllerContext();
            controller.ControllerContext.HttpContext = HttpContexts.Valid_Search;

            var response = await controller.GetForPatient("1234567890");

            Assert.IsType <OkObjectResult>(response);

            var okResult = response as OkObjectResult;

            Assert.Equal(200, okResult.StatusCode);

            var responseContent = okResult.Value;

            Assert.IsType <CrisisPlanViewModel>(responseContent);
            var viewModel = responseContent as CrisisPlanViewModel;

            Assert.Equal("1234567890", viewModel.Asid);
            Assert.Equal("Org1", viewModel.OrgCode);
        }