public void Given_employee_is_deleted_in_list_when_AddEmployee_to_distribution_list_then_employee_is_not_duplicated_and_undeleted() { //GIVEN var site = new SiteStructureElementForTesting() {Id = 123123}; var employee = new Employee() {Id = Guid.NewGuid()}; var accidentRecordNotificationMember = new AccidentRecordNotificationEmployeeMember { Deleted = true, Site = site, Employee = employee }; site.ProtectedAccidentRecordNotificationMembers = new List<AccidentRecordNotificationMember>(){accidentRecordNotificationMember}; //WHEN site.AddAccidentRecordNotificationMember(employee, new UserForAuditing()); //THEN Assert.That(site.ProtectedAccidentRecordNotificationMembers.Count, Is.EqualTo(1)); Assert.That(site.AccidentRecordNotificationMembers[0].Deleted, Is.False); }