private static void AssertResults(AatfData aatfData, AatfEditDetailsViewModel result, string competentAuthorityId) { Assert.Equal(aatfData.Id, result.Id); Assert.Equal(aatfData.Name, result.Name); Assert.Equal(aatfData.ApprovalNumber, result.ApprovalNumber); Assert.Equal(aatfData.SiteAddress, result.SiteAddressData); Assert.Equal(competentAuthorityId, result.CompetentAuthorityId); Assert.Equal(AatfStatus.Approved.Value, result.StatusValue); Assert.Equal(AatfSize.Large.Value, result.SizeValue); Assert.Equal(FacilityType.Aatf, result.FacilityType); Assert.Equal(aatfData.ComplianceYear, result.ComplianceYear); Assert.Equal(aatfData.PanAreaData.Id, result.PanAreaId); Assert.Equal(aatfData.LocalAreaData.Id, result.LocalAreaId); }
public async Task <ActionResult> ManageAatfDetails(AatfEditDetailsViewModel viewModel) { return(await ManageFacilityDetails(viewModel)); }