public void Url_Must_Be_Equal_With_ExpectedUrl() { var instance1 = new CallbackUrl(ExpectedUrl); var instance2 = CallbackUrl.Parse(ExpectedUrl); CallbackUrl.TryParse(ExpectedUrl, out var instance3); Assert.AreEqual(ExpectedUrl, instance1.Url); Assert.AreEqual(ExpectedUrl, instance2.Url); Assert.AreEqual(ExpectedUrl, instance3.Url); }
public void Setup() { _invoice = new Invoice { CallbackUrl = CallbackUrl.Parse("http://www.mysite.com") }; _httpContextAccessor = MockHelpers.MockHttpContextAccessor(); _options = new OptionsWrapper <QueryStringPaymentTokenOptions>(new QueryStringPaymentTokenOptions()); _provider = new GuidQueryStringPaymentTokenProvider(_httpContextAccessor, _options); }