public void GetAllLikesWithNullParameterTest() { this.FacebookPageStub = new StubIFacebookPage() { GetAllCommentsForPostString = (postID) => { return new List<FacebookComment>(); } }; this.facade = new FacebookFacade(FacebookPageStub); facade.GetAllLikesForPost(null); }
public void GetAllLikesWithValidParameterTest() { bool IsPageGetAllLikesCalled = false; this.FacebookPageStub = new StubIFacebookPage() { GetAllLikesForPostString = (postID) => { IsPageGetAllLikesCalled = true; return new List<IFacebookProfile>(); } }; this.facade = new FacebookFacade(FacebookPageStub); facade.GetAllLikesForPost("132"); Assert.IsTrue(IsPageGetAllLikesCalled, "Page.GetAllLikesForPost not called from Facade."); }