public void WhenDeeplinkBaseUrlIsEmpty_GetDeepLinkReturnsEmptyString() { const string ProcessName = "TestProcess"; const int ItemId = 123; var target = new DeepLinkHelper {ApplicationRootUrl = null}; var deepLink = target.GetDeepLink(ProcessName, ItemId); Assert.AreEqual(string.Empty, deepLink); }
public void GetDeepLinkTest() { const string ProcessName = "TestProcess"; const int ItemId = 123; var target = new DeepLinkHelper {ApplicationRootUrl = "http://example.com"}; var deepLink = target.GetDeepLink(ProcessName, ItemId); const string Expected = "http://example.com/#processname=TestProcess&itemid=123"; Assert.AreEqual(Expected, deepLink); }