public void WithId_ACommentCardAction_ReturnsExpectedAction() { const string actionId = "4f3f5d073cf351b24302417d"; var expected = new CommentCardAction { Id = actionId, IdMemberCreator = TestUser, Date = new DateTime(2012, 02, 18, 08, 10, 47, 335), Data = new CommentCardAction.ActionData { Board = TheWelcomeBoard(), Card = new CardName { Id = "4f2b8b4d4f2cb9d16d3684e6", Name = "Welcome to Trello!" }, Text = "A test comment" }, MemberCreator = CreateActionMemberOskar() }.ToExpectedObject(); var actual = _trelloReadOnly.Actions.WithId(actionId); expected.ShouldEqual(actual); }
public void WithId_ACommentCardAction_ReturnsExpectedAction() { const string actionId = "4f3f5d073cf351b24302417d"; var expected = new CommentCardAction { Id = actionId, IdMemberCreator = TestUser, Date = new DateTime(2012, 02, 18, 08, 10, 47, 335), Data = new CommentCardAction.ActionData { Board = TheWelcomeBoard(), Card = new CardName { Id = "4f2b8b4d4f2cb9d16d3684e6", Name = "Welcome to Trello!" }, Text = "A test comment" } }.ToExpectedObject(); var actual = _trelloReadOnly.Actions.WithId(actionId); expected.ShouldEqual(actual); }