public void Null_Id_GetLink_Succeeds()
        {
            //Arrange
            ApplicationUriName resourceName = ApplicationUriName.Cost;
            string             id           = null;
            var target = new HttpContextApplicationUriHelper();

            //Act
            string result = target.GetLink(resourceName, id);

            //Assert
            Assert.IsNotNull(result);
        }
        public void Cost_With_Id_GetLink()
        {
            //Arrange
            ApplicationUriName resourceName = ApplicationUriName.Cost;
            const string       id           = "cost-id";
            var          target             = new HttpContextApplicationUriHelper();
            const string expected           = "/costs/#/costs/cost-details/cost-id";

            //Act
            string result = target.GetLink(resourceName, id);

            //Assert
            Assert.IsNotNull(result);
            Assert.AreEqual(expected, result);
        }
        public void CostRevisionReview_With_RevisionId_And_CostId_GetLink()
        {
            //Arrange
            ApplicationUriName resourceName = ApplicationUriName.CostRevisionReview;
            const string       costId       = "cost-id";
            const string       revisionId   = "revision-id";
            var          target             = new HttpContextApplicationUriHelper();
            const string expected           = "/costs/#/costs/items/review?revisionId=revision-id&costId=cost-id";

            //Act
            string result = target.GetLink(resourceName, revisionId, costId);

            //Assert
            Assert.IsNotNull(result);
            Assert.AreEqual(expected, result);
        }