public void CelebrateBirthday() { // our mock context will return 1 var id = _user.GetCurrentPersonId(); // get the person from the mock db var person = _personRepo.GetPersonById(id); // set our expectation int expectedAge = person.Age + 1; // this is the function we are actually here to test var result = _birthdayService.CelebrateBirthday(person); Assert.IsNotNull(result); Assert.IsInstanceOf(typeof(Person), result); Assert.AreEqual(expectedAge, result.Age); }