public void WhenAddMemberItShouldBeThere() { // Assume var intershipService = new InternshipService(); Intern intern = new Intern(); // Act intern.Name = "Marko"; intershipService.AddMember(intern); // Assert Assert.Equal(4, intershipService.GetMembers().Count); Assert.Contains("Marko", intershipService.GetMembers().Select(member => member.Name)); }
public string AddMember(string member) { return(intershipService.AddMember(member)); }