public void CanMockRemove()
        {
            var modelCreator = ninjectKernel.Get<ModelCreator> ();
            var modelRepository = ninjectKernel.Get<IModelRepository> ();

            var aModel = new Model () { FieldA = 1, FieldB = "Test"};
            modelCreator.RemoveModel (aModel);

            modelRepository.AssertWasCalled (p => p.Remove (aModel));
        }
Пример #2
0
 public void RemoveModel(Model aModel)
 {
     repository.Remove(aModel);
 }
Пример #3
0
 public void CreateModel(Model aModel)
 {
     repository.Add(aModel);
 }
Пример #4
0
 public void Remove(Model aModel)
 {
     ModelCount++;
 }
Пример #5
0
 public void Add(Model aModel)
 {
     ModelCount ++;
 }