public void ShouldHaveSameFrameworkCodes() { var restApiClientforPP = new RestApiClient(""); var restApiClientforProd = new RestApiClient("http://das-prd-apprenticeshipinfoservice.cloudapp.net/"); var frameworkcodesinPP = restApiClientforPP.GetAllFrameworkCodes().Result.Select(x => restApiClientforPP.GetByFrameworkCode(x.FrameworkCode).Result).ToList(); var frameworkcodesinProd = restApiClientforProd.GetAllFrameworkCodes().Result.Select(x => restApiClientforProd.GetByFrameworkCode(x.FrameworkCode).Result).ToList(); Assert.Multiple(() => { foreach (var frameworkcodeinPP in frameworkcodesinPP) { var frameworkcodeinprod = frameworkcodesinProd.Single(x => x.FrameworkCode == frameworkcodeinPP.FrameworkCode); Assert.AreEqual(frameworkcodeinprod.Title, frameworkcodeinPP.Title, $"Framework Code Title looks different for {frameworkcodeinprod.FrameworkCode}"); Assert.AreEqual(frameworkcodeinprod.Ssa1, frameworkcodeinPP.Ssa1, $"Framework Code SSA1 looks different for {frameworkcodeinprod.FrameworkCode}"); Assert.AreEqual(frameworkcodeinprod.Ssa2, frameworkcodeinPP.Ssa2, $"Framework Code SSA2 looks different for {frameworkcodeinprod.FrameworkCode}"); } }); }