Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        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);
        }