public void SetUp()
        {
            mocks      = new MockRepository();
            repository = mocks.StrictMock <IPrincessRepository>();

            controller = new PrincessController(repository);
        }
 public PrincessController(IPrincessRepository repository)
 {
     ViewBag.Title = PersonResource.Title_Princesses;
     PrincessRepository = repository ?? new PrincessRepository(_context);
 }
        public void SetUp()
        {
            mocks = new MockRepository();
            repository = mocks.StrictMock<IPrincessRepository>();

            controller = new PrincessController(repository);
        }
 public PrincessController(IPrincessRepository repository)
 {
     ViewBag.Title      = PersonResource.Title_Princesses;
     PrincessRepository = repository ?? new PrincessRepository(_context);
 }