Inheritance: IMessagingService
        public void Setup()
        {
            DataAccess = new TestTwitterDataAccess();
            Utilities = new TwitterUtilities(DataAccess, MaxMessageLength);

            Context();
            Because();
        }
Ejemplo n.º 2
0
        public void Setup()
        {
            DataAccess = new TestRxTwitterDataAccess();
            Utilities = new TwitterUtilities(DataAccess, MaxMessageLength);
            Utilities.CredentialsRequested += Utilities_CredentialsRequested;

            Context();
            Because();
        }
Ejemplo n.º 3
0
        public void Context()
        {
            MockTweetService = MockRepository.GenerateMock<ITwitterDataAccess>();
            MockTweetService.Stub(x => x.SendMessage(null, null))
                .Callback<Credentials, string>(CountASentMessage)
                .Return("");

            TwitterDAL = new TwitterUtilities(MockTweetService, 30);
            MyIdentity = new Identity("@darkxanthos", TwitterDAL.GetInformation());

            BecauseOf();
        }