Ejemplo n.º 1
0
        public async Task RunAsync()
        {
            var sdkConfig = new SdkConfig
            {
                ProjectId = TEST_PROJECT_ID, OrganizationId = TEST_ORG_ID
            };

            sdkConfigFactory.LoadOrDefault().Returns(sdkConfig);
            credentialManager.LoadAccount().Returns(TEST_ACCOUNT);

            await cloudRunner.RunAsync(TEST_TITLE, funcToRun);

            await funcToRun.Received()
            .Invoke(Arg.Any <CallInvoker>(), TEST_ACCOUNT, TEST_PROJECT_ID);
        }