public void SetUp() { account = new Account("user001", "pw123"); var stub = Substitute.For<IAccountDao>(); stub.FindOrNull("user001").Returns(account); sut = new Authentication(stub); }
public void SetUp() { var stub = Substitute.For<IAccountDao>(); stub.FindOrNull("user001").Returns(x => null); sut = new Authentication(stub); }
public void SetUp() { account = new Account("user001", "pw999"); var stub = MockRepository.GenerateMock<IAccountDao>(); stub.Stub(p => p.FindOrNull("user001")).Return(account); sut = new Authentication(stub); }