public void ControllerManager_GetActionName_NullDocumentMetadataReturnsNull() { var stubAllowedWebpage = new StubAllowedWebpage { PublishOn = CurrentRequestData.Now.AddDays(-1) }; _controllerManager.GetMetadata = document => null; _controllerManager.GetActionName(stubAllowedWebpage, "GET").Should().BeNull(); }
public void ControllerManager_GetActionName_WebpageIsNullReturnNull() { _controllerManager.GetActionName(null, "GET").Should().BeNull(); }