Example #1
0
 public TodoController(TodoRepository repository, BloggerGateway gateway, 
     ThoughtRepository thoughtRepository, TopicRepository topicRepository)
 {
     this.repository = repository;
     this.gateway = gateway;
     this.thoughtRepository = thoughtRepository;
     this.topicRepository = topicRepository;
 }
Example #2
0
        public void Should_Authenticate_With_Blogger()
        {
            var gateway = new BloggerGateway();
            var googleURL = gateway.AuthenticateURL("foo");

            Assert.AreEqual(
                "https://www.google.com/accounts/AuthSubRequest?" +
                "next=http://10.1.10.12:1901/Todo/BloggerAuthorized?title=foo&scope=" +
                "http://www.blogger.com/feeds/2580952471083668495/" +
                "posts/default", googleURL);
        }