public void BeforeEachTest()
        {
            Card.Arrange(c => c.Id).Returns(CardId);
            Card.Arrange(c => c.ListName).Returns(WritingCalendarService.PlannedPostsListName);

            Board.Arrange(b => b.AllCards).Returns(new List <ITrelloCard>()
            {
                Card
            });

            Target = new WritingCalendarService(Board);
        }
Ejemplo n.º 2
0
 public BlogPostSynchronizer(WritingCalendarService trelloService, PlanningSpreadsheetService planningSpreadsheetService)
 {
     _planningSpreadsheetService = planningSpreadsheetService;
     _trelloService = trelloService;
 }
Ejemplo n.º 3
0
        public void BeforeEachTest()
        {
            Board.Arrange(b => b.AddPlannedPostCard(Arg.AnyString, Arg.AnyString, Arg.IsAny <DateTime?>(), Arg.AnyString, Arg.AnyString)).Returns(Card);

            Target = new WritingCalendarService(Board);
        }
Ejemplo n.º 4
0
 public BlogPostsController(BlogContext blogContext, WritingCalendarService writingCalendarService, WordpressService wordpressService)
 {
     _wordpressService       = wordpressService;
     _writingCalendarService = writingCalendarService;
     _blogContext            = blogContext;
 }
        public void BeforeEachTest()
        {
            Target = new WritingCalendarService();

            Target.Initialize(new CredentialStore(FileLines));
        }