Exemple #1
0
        public void SearchComplaint()
        {
            Complaint complaint = new Complaint()
            {
                ID = 1, Contents = "Test Complaint", Completed = false, Create = DateTime.Now
            };
            int count = ComplaintRepo.Complaints.Count;

            ComplaintRepo.AddComplaint(complaint);
            Complaint found = ComplaintRepo.Search(1);

            Assert.True(found.Contents == complaint.Contents);
            // Cleanup
            Context.Database.EnsureDeleted();
        }