Esempio n. 1
0
        public ActionResult ExpectFixtureA(Form1ViewModel vm)
        {
            try
            {
                Assert.That(vm, IsSame.ViewModelAs(Form1Fixtures.A));
            }
            catch (Exception e)
            {
                return new ContentResult {Content = e.ToString(), ContentType = "text/plain"};
            }

            return new EmptyResult();
        }
Esempio n. 2
0
 public void When_reading_a_model()
 {
     _viewModel = _page.ReadModel();
 }