Skip to content

Instantly share code, notes, and snippets.

@jcbozonier
Created September 25, 2009 21:32
Show Gist options
  • Select an option

  • Save jcbozonier/193864 to your computer and use it in GitHub Desktop.

Select an option

Save jcbozonier/193864 to your computer and use it in GitHub Desktop.
DataAccess = MockRepository.GenerateStub<IAtb2ViewStateDataAccess>();
DataAccess.Expect(x => x.GetViewStates(null))
.IgnoreArguments()
.Return(
new[]
{
SelectedViewState
}.ToUserViewStateFileData());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment