Skip to content

Mocking contract calls #52

Description

@SkyKarma

A nice feature would be to allow mocking calls,

For example, my contract needs to call another contract on the blockchain like shown below,
image

I want to be able to set up a test to say something like:

engine.Mock<Contract>(c => c.Call(params).Return(true);
engine.ExecuteScript<MyContract>(c => c.DoSomething(otherParams));

So I want to be able to mock the Neo.SmartContract.Framework.Services Contract class in this instance

Another nice feature would be to be able to mock datastorages as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions