using NUnit.Framework; using Website.DataAccess; namespace Integration_Tests { [TestFixture] public class StaticRedirectRepositoryTests { [Test] public void GetRedirectUrlByPath_returns_modified_path_for_downloads() { Assert.AreEqual( new StaticRedirectRepository().GetRedirectUrlByPath("downloads/test/1234.txt"), "http://downloads.jesschadwick.com/test/1234.txt"); } [Test] public void GetRedirectUrlByPath_returns_null_for_non_downloads() { Assert.IsNull( new StaticRedirectRepository().GetRedirectUrlByPath("fdsafda/fdafds/1234.txt")); } } }