public void WithNullContextReturnsEmptyString() { // Assert + Assert var result = ObfuscationHelper.ObfuscateRequestUrl(null, _currentRoutes); Assert.Equal("", result); }
public void ValidData() { //Arrange var context = GetMockedHttpContext(); // Assert + Assert var result = ObfuscationHelper.ObfuscateRequestUrl(context, _currentRoutes); Assert.Equal("profiles/ObfuscatedUserName", result); }
public void WithNullRoutesReturnsEmptyString() { //Arrange var context = GetMockedHttpContext(); // Assert + Assert var result = ObfuscationHelper.ObfuscateRequestUrl(context, null); Assert.Equal("", result); }