public void Setup()
        {
            mockSecurityFactory   = new Mock <SecurityFactory>();
            securityFactory       = mockSecurityFactory.Object;
            authenticationManager = new  Mock <AuthenticationManager>().Object;
            authorizationManager  = new Mock <AuthorizationManager>().Object;

            mockSecurityFactory.Setup(securityFactory => securityFactory.GetAuthenticationManager()).Returns(authenticationManager);
            mockSecurityFactory.Setup(securityFactory => securityFactory.GetAuthorizationManager()).Returns(authorizationManager);
        }
 public void ShouldReturnAuthorizationManagerObject()
 {
     Assert.That(securityFactory.GetAuthorizationManager(), Is.EqualTo(authorizationManager));
 }