public void Should_Delete_Announcement() { // Arrange var announcement = new Announcement(Name, Period, TenderTypId, TenderReasonId, IntroAboutTender, IsInsideKsa, Details, ActivityDescription, BranchId, AgencyCode, _activitiesIds, _constructionsWorkIds, _maintenanceWorkIds, _areasIds, _countriesIds); // Act announcement.Delete(); // Assert announcement.State.ShouldBe(ObjectState.Deleted); }
public void お知らせを削除() { var act = new Announcement( new AnnouncementTitle("大会のお知らせ"), "<h3>○○大会のおしらせ</h3><p>エントリー料の入金期限は7/27となっております。まだの方は早急にお振込みをお願い致します。</p>", AnnouncementGenre.News, new RegisteredDate(new DateTime(2020, 4, 1)), new EndDate(new DateTime(2020, 4, 30)), new AttachedFilePath("/attached/filePath") ); act.Delete(); Assert.NotNull(act.DeletedDateTime); }