public IComplaint MakeStubComplaint(string Topic) { var newComplaint = new StubIComplaint() { TopicGet = () => Topic }; return(newComplaint); }
public StubIComplaint MakeStubComplaint() { var newComplaint = new StubIComplaint() { TopicGet = () => exampleTopic, BodyGet = () => exmapleBody, AcceptGet = () => false, DateAddGet = () => DateTime.Now, FormOfCompensationGet = () => exmapleFormOfCompensation }; return(newComplaint); }
public void ShowAcceptedComplaintClient_ReturnNotNullTable_WhenAddAcceptedComplaint() { var newComplain = new StubIComplaint() { TopicGet = () => { return(exampleTopic); }, AcceptGet = () => { return(true); } }; Client c = new Client(exmapleName, exmapleSurname, exmapleNumber); c.AddedComplaints.Add(newComplain); CollectionAssert.AllItemsAreNotNull(c.ShowComplaintsAcceptedTable()); }