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);
        }
        public void BeforeEachTest()
        {
            Card.Arrange(c => c.Id).Returns(CardTrelloId);
            Card.Arrange(c => c.ListName).Returns(CalendarService.PlannedPostsListName);

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

            Target = new WhitepaperSynchronizer(Board);
        }
        public void Set_Post_Trello_Id_Based_On_Card_TrelloId()
        {
            const string trelloId = "asdf";

            Card.Arrange(c => c.Id).Returns(trelloId);

            Target.CreateCardForEntity(Refresh);

            Refresh.TrelloId.ShouldBe(trelloId);
        }
Beispiel #4
0
        public void Set_Post_Trello_Id_Based_On_Card_TrelloId()
        {
            const string trelloId = "asdf";

            Card.Arrange(c => c.Id).Returns(trelloId);

            Target.AddCard(Post);

            Post.TrelloId.ShouldBe(trelloId);
        }
Beispiel #5
0
        public void BeforeEachTest()
        {
            Card.Arrange(c => c.Name).Returns(CardTitle);

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

            Target = new WritingCalendarService(Board);
        }