public async Task Get_WhenNoParameterPassed_GetAllUrlsConfiguration() { // Action var result = (List <IntegratedApp>) await _configurationServiceFixture.ConfigurationService.GetAllURLConfigurationAsync(accessToken); Assert.NotEmpty(result); var expectedList = (List <IntegratedApp>)_integratedAppsMock.GetIntegratedApp(); Assert.Equal(result[0].ApplicationURL, expectedList[0].ApplicationURL); Assert.Equal(result[0].Integrated, expectedList[0].Integrated); Assert.Equal(result[0].ApplicationName, expectedList[0].ApplicationName); }
public void SeedIntegratedApps() { try { _logger.LogInformation("Starting Re-Seed Integrated App Values"); // re seed all record var mocks = new IntegratedAppsMock(); foreach (var item in mocks.GetIntegratedApp()) { _configurationDBContext.IntegratedApps.Add(item); } _configurationDBContext.SaveChanges(); _logger.LogInformation("Integrated App Values Successfully Populated"); } catch (Exception ex) { _logger.LogError(ex, "Exception Occured In Integrated App Seed Block."); throw; } }