public void TestGetById() { //Arrange OfficeSubscription ToGet = subservice.GetAllSubscriptions().FirstOrDefault(); string Name = ToGet.SubscriptionName; Guid Id = ToGet.SubscriptionID; //Act OfficeSubscription Got = subservice.GetById(ToGet.SubscriptionID); //Assert Assert.IsNotNull(Got); Assert.AreEqual(Name, Got.SubscriptionName); Assert.AreEqual(Id, Got.SubscriptionID); }