Esempio n. 1
0
 public void Then_All_History_For_That_Report_Is_Removed()
 {
     RepositoryTestHelper
     .GetAllAuditHistory()
     .Should()
     .NotContain(
         record => record.ReportId == RepositoryTestHelper.ReportTwoId);
 }
Esempio n. 2
0
        public void Then_All_History_For_Other_Report_Remains_Intact()
        {
            RepositoryTestHelper
            .GetAllAuditHistory()
            .Should()
            .OnlyContain(
                record => record.ReportId == RepositoryTestHelper.ReportOneId);

            RepositoryTestHelper
            .GetAllAuditHistory()
            .Should()
            .HaveCount(
                5);
        }