public void Init() { mockWebSecurityAdapter = MockRepository.GenerateMock <IWebSecurityAdapter>(); mockCredentials = MockRepository.GenerateMock <ICredentials>(); mockCredentials.Expect(m => m.UserName).Return("user name"); mockCredentials.Expect(m => m.Password).Return("password"); mockSubscriber = MockRepository.GenerateMock <ISubscriber>(); mockSubscriber.Expect(m => m.UserName).Return("user name"); mockSubscriber.Expect(m => m.Password).Return("password"); mockSubscriber.Expect(m => m.IsRememberedAtNextLogOn).Return(true); }