public async Task Remove_MultipleFacilitiesRemoveSiteOfTreatment_ReturnsViewWithError() { A.CallTo(() => mediator.SendAsync(A <GetFacilitiesByNotificationId> ._)).Returns( new List <FacilityData> { CreateFacility(facilityId), CreateFacility(facilityId2) }); var result = await facilityController.Remove(notificationId, facilityId) as ViewResult; Assert.Equal(string.Empty, result.ViewName); Assert.NotNull(result.ViewBag.Error); }