public void WhenDeepLinkBaseUrlIsEmpty_GetEncryptedDeepLinkReturnsEmptyString() { const string ProcessName = "Process1"; const int ItemId = 1; const int PersonId = 2; var target = new DeepLinkHelper{ApplicationRootUrl = null}; var deepLink = target.GetEncryptedDeepLink(ProcessName, ItemId, PersonId); Assert.AreEqual(string.Empty, deepLink); }
public void GetEncryptedDeepLinkTest() { const string ProcessName = "Process1"; const int ItemId = 1; const int PersonId = 2; var target = new DeepLinkHelper { ApplicationRootUrl = "http://example.com/" }; var deepLink = target.GetEncryptedDeepLink(ProcessName, ItemId, PersonId); const string expected = "http://example.com/#keycode=9btco-rKfHnAT3aNOGInVcSlVUj_kTW5uyVazGxPBysfJPiG65olpkfB4v77yw3LL44SJ7Vf4Ic_R-WXfTEhY2Wy5oybBzyYpT3TXnwyE-I"; Assert.AreEqual(expected, deepLink); }