public void SignOut_SignedUser_EraseToken() { var init = new InitializeMockContext(); var mock = init.mock; var signInService = new SignInService(mock.Object); var result = signInService.SignOut(new SignOutCommand() { UserId = 3 }); Assert.AreEqual(result, true); mock.Verify(m => m.SaveChanges(), Times.Once()); }