public void TokenRequestLogListData_GET_InvalidResponse() { // arrange MockIntegrationService.Setup_GetTokenRequestLogsOfOrganization_Returns_OrganizationTokenRequestLogReadListResponse_Invalid(); // act var result = SystemUnderTest.TokenRequestLogListData(UidOne, One, Two); // assert AssertView <NotFoundResult>(result); MockIntegrationService.Verify_GetTokenRequestLogsOfOrganization(); }
public void IntegrationListData_GET_InvalidResponse() { // arrange MockIntegrationService.Setup_GetIntegrations_Returns_IntegrationReadListResponse_Invalid(); // act var result = SystemUnderTest.IntegrationListData(UidOne, One, Two); // assert AssertView <NotFoundResult>(result); MockIntegrationService.Verify_GetIntegrations(); }
public async Task TokenRequestLogListData_GET_SetPaging(int skip, int take) { // arrange MockIntegrationService.Setup_GetTokenRequestLogsOfOrganization_Returns_OrganizationTokenRequestLogReadListResponse_Success(); // act var result = (JsonResult)await SystemUnderTest.TokenRequestLogListData(UidOne, skip, take); // assert AssertView <DataResult>(result); AssertPagingInfo(result); }
private static HwConfigSample GenerateHwConfig() { var container = new UnityContainer(); var nonconfigManager = new NonconfigDataManagerRegistry(container); var integrationSvr = new MockIntegrationService { AgentModulesPath = Path.Combine("Modules") }; var log = new MockAceLog(); var hwconfig = new HwConfigSample(nonconfigManager, integrationSvr, log); return(hwconfig); }