Example #1
0
        public IComplaint MakeStubComplaint(string Topic)
        {
            var newComplaint = new StubIComplaint()
            {
                TopicGet = () => Topic
            };

            return(newComplaint);
        }
Example #2
0
        public StubIComplaint MakeStubComplaint()
        {
            var newComplaint = new StubIComplaint()
            {
                TopicGet              = () => exampleTopic,
                BodyGet               = () => exmapleBody,
                AcceptGet             = () => false,
                DateAddGet            = () => DateTime.Now,
                FormOfCompensationGet = () => exmapleFormOfCompensation
            };

            return(newComplaint);
        }
Example #3
0
        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());
        }