Rhino Mocks Sample How to Mock Property
- by guazz
How can I test that "TestProperty" was set a value when ForgotMyPassword(...) was called?
> public interface IUserRepository
{
User GetUserById(int n);
}
public interface INotificationSender
{
void Send(string name);
int TestProperty { get; set; }
}
public class User
{
…