public void VerifyResult() { ConfigureHandoverUrlExample example = new ConfigureHandoverUrlExample(); example.Run(); AssertHandover(example.handoverBeforeCreating, HandoverBuilder.NewHandover(example.ITALIAN) .WithHref("") .WithTitle("") .WithText("") .Build()); AssertHandover(example.handoverAfterCreating, HandoverBuilder.NewHandover(example.ITALIAN) .WithHref(example.HREF) .WithTitle(example.TITLE) .WithText(example.TEXT) .Build()); AssertHandover(example.handoverAfterUpdating, HandoverBuilder.NewHandover(example.ITALIAN) .WithHref(example.HREF) .WithTitle(example.UPDATED_TITLE) .WithText(example.TEXT) .Build()); AssertHandover(example.handoverAfterDeleting, HandoverBuilder.NewHandover(example.ITALIAN) .WithHref("") .WithTitle("") .WithText("") .Build()); }
private Handover CreateTypicalSDKHandover() { return(HandoverBuilder.NewHandover(lang) .WithHref("sdkHref") .WithTitle("sdkTitle") .WithText("sdkText") .Build()); }
public Handover ToSDKHandover(string language) { if (apiLink == null) { return(sdkHandover); } return(HandoverBuilder .NewHandover(language) .WithHref(apiLink.Href) .WithText(apiLink.Text) .WithTitle(apiLink.Title) .Build()); }
public OneSpanSign.Sdk.Handover ToSDKHandover(string language) { if (apiHandover == null) { return(sdkHandover); } return(HandoverBuilder .NewHandover(language) .WithHref(apiHandover.Href) .WithText(apiHandover.Text) .WithTitle(apiHandover.Title) .Build()); }
public void BuildTest() { string lang = "fr"; string href = "href"; string text = "text"; string title = "title"; Handover handover = HandoverBuilder.NewHandover(lang) .WithHref(href) .WithText(text) .WithTitle(title) .Build(); Assert.AreEqual(lang, handover.Language); Assert.AreEqual(href, handover.Href); Assert.AreEqual(text, handover.Text); Assert.AreEqual(title, handover.Title); }
override public void Execute() { AccountConfigService accountConfigService = ossClient.AccountConfigService; handoverBeforeCreating = accountConfigService.GetHandoverUrl(ITALIAN); handoverAfterCreating = accountConfigService .CreateHandoverUrl(HandoverBuilder.NewHandover(ITALIAN) .WithHref(HREF) .WithText(TEXT) .WithTitle(TITLE) .Build()); handoverAfterUpdating = accountConfigService.UpdateHandoverUrl(HandoverBuilder.NewHandover(ITALIAN) .WithTitle(UPDATED_TITLE) .Build()); accountConfigService.DeleteHandoverUrl(ITALIAN); handoverAfterDeleting = accountConfigService.GetHandoverUrl(ITALIAN); }