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); }
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); }
public void BeforeEachTest() { Card.Arrange(c => c.Name).Returns(CardTitle); Board.Arrange(b => b.AllCards).Returns(new List <ITrelloCard>() { Card }); Target = new WritingCalendarService(Board); }