public void TestMethod2()
        {
            // Arrange
            Services.CallService service = new Services.CallService();

            // Act
            Domain.Member member = service.loadMemberDetails(579);

            // Assert
            Assert.IsNotNull(member);

            Assert.AreEqual("The Rt Hon. the Lord Foulkes of Cumnock", member.fullTitle);
            Assert.AreEqual("Life peer", member.memberFrom);
        }
Beispiel #2
0
 // GET: api/Members/5
 public Domain.Member Get(int id)
 {
     Services.CallService servis = new Services.CallService();
     Domain.Member        member = servis.loadMemberDetails(id);
     return(member);
 }