public void Setup()
        {
            _stuffCategory = new StuffCategory { Name = "DVD Film" };

            _stuffCategoryRepository = MockRepository.GenerateStub<IStuffCategoryRepository>();
            _stuffCategoryRepository.Stub(x => x.GetAll()).Return(new[] { _stuffCategory });
        }
 public StuffCategoryViewModel(StuffCategory stuffCategory)
 {
     ID = stuffCategory.Id;
     Name = stuffCategory.Name;
     UniqueSafeName = GetUniqueSafeName(stuffCategory.Name);
 }
 private static StuffCategoryViewModel GetStuffCategoryViewModel(StuffCategory sc)
 {
     return new StuffCategoryViewModel(sc);
 }