Exemplo n.º 1
0
        public void CurrentUserNotFoundException_is_thrown_if_current_user_cannot_be_found()
        {
            var securityManager = new Mock<ISecurityManager>();
            securityManager.SetupGetCurrentUserAccountToReturnNoUserAccount();
            var manager = Create.BusinessLogicClass.NavigationManager(securityManager.Object);

            Assert.Throws<CurrentUserNotFoundException>(() => manager.FindLocalSystems(Create.DomainClasses.ScreenSize()));
        }