public void DeleteMethodTest_Truthy()
        {
            _fakeCollection.Delete(1).Returns(true);
            _fakeDbWrapper.Execute <TestEntity>(Arg.Any <string>(), Arg.Any <string>(), Arg.Any <Func <ICollectionWrapper <TestEntity>, bool> >())
            .Returns(x => ((Func <ICollectionWrapper <TestEntity>, bool>)x[2]).Invoke(_fakeCollection));

            bool result = _sut.Delete(1);

            Assert.IsTrue(result);
        }
Beispiel #2
0
 public void On(DeleteEvent delete)
 {
     _collection.Delete(delete, delete.AggregateId);
 }
 public void On(DocumentDescriptorDeleted e)
 {
     _documents.Delete(e, (DocumentDescriptorId)e.AggregateId);
 }