protected override void Context() { _accountRepository = MockRepository.GenerateStub<IAccountRepository>(); _accountRepository.Stub(x => x.GetAuthorizedActionsForUser(Arg<string>.Is.Equal(Username))) .Return(new List<string> { "CreateAccount", }); _authorizationService = new AuthorizationService(_accountRepository); }