public void ControllerManager_GetActionName_NullDocumentMetadataReturnsNull()
        {
            var stubAllowedWebpage = new StubAllowedWebpage {
                PublishOn = CurrentRequestData.Now.AddDays(-1)
            };

            _controllerManager.GetMetadata = document => null;

            _controllerManager.GetActionName(stubAllowedWebpage, "GET").Should().BeNull();
        }
Esempio n. 2
0
 public void ControllerManager_GetActionName_WebpageIsNullReturnNull()
 {
     _controllerManager.GetActionName(null, "GET").Should().BeNull();
 }