private void TestSerialization(MagicsForTests.ClientSideFlows flow, GetExpectations getExpectations) =>
        new HeavyTestRunner(_logger).RunServerAndBrowserAndExecute(flow,
                                                                   (assert, server, browser) => {
            browser
            .FindElementById(MagicsForTests.RunClientSideTestBtnId)
            .Click();

            Assert.True(Poll.Wait(() => !browser.FindElementById(MagicsForTests.ResultSpanId).Text.Then(string.IsNullOrEmpty)));
            var(expectedCall, expectedClientResultValue) = getExpectations(assert, server, browser);
            assert.ServiceCallsMadeOnServerAre(expectedCall);
            Assert.Equal(expectedClientResultValue, browser.FindElementById(MagicsForTests.ResultSpanId).Text);
        });
 private void TestSerialization(MagicsForTests.ClientSideFlows flow, ServiceCall expectedCall, string expectedClientResultValue) =>
 TestSerialization(flow, (x, y, z) => (expectedCall, expectedClientResultValue));
Esempio n. 3
0
 public static string GenerateUrl(
     MagicsForTests.ClientSideFlows flow, params (string key, string val)[] args)