public void Should_Add_JoinRequest() { // Arrange var announcement = new Announcement(Name, Period, TenderTypId, TenderReasonId, IntroAboutTender, IsInsideKsa, Details, ActivityDescription, BranchId, AgencyCode, _activitiesIds, _constructionsWorkIds, _maintenanceWorkIds, _areasIds, _countriesIds); var joinRequest = new AnnouncementJoinRequest(); // Act announcement.AddJoinRequest(joinRequest); // Assert announcement.ShouldNotBeNull(); announcement.AnnouncementJoinRequests.Count.ShouldBe(1); }
public void Should_Withdraw_JoinRequest() { // Arrange var announcement = new Announcement(Name, Period, TenderTypId, TenderReasonId, IntroAboutTender, IsInsideKsa, Details, ActivityDescription, BranchId, AgencyCode, _activitiesIds, _constructionsWorkIds, _maintenanceWorkIds, _areasIds, _countriesIds); var joinRequest = new AnnouncementJoinRequest(1, "123", 1); announcement.AddJoinRequest(joinRequest); // Act announcement.WithdroawJoinRequest("123"); // Assert announcement.ShouldNotBeNull(); announcement.AnnouncementJoinRequests.Count.ShouldBe(1); announcement.AnnouncementJoinRequests[0].StatusId .ShouldBe((int)Enums.AnnouncementJoinRequestStatus.WithDraw); }