Exemple #1
0
        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));
        }
Exemple #2
0
 public string AddMember(string member)
 {
     return(intershipService.AddMember(member));
 }