protected TestBase(ICryptographyFactory cryptographyFactory = null) { _network = new Network(cryptographyFactory ?? new SimpleCryptographyFactory()); MyAccount = _network.CreateRootAccount("MyAccount", 1); OtherAccount = _network.CreateRootAccount("OtherAccount", 2); ThirdAccount = _network.CreateRootAccount("ThirdAccount", 3); MyActor = MyAccount.GetActor(_network, _transactionFactory); OtherActor = OtherAccount.GetActor(_network, _transactionFactory); ThirdActor = ThirdAccount.GetActor(_network, _transactionFactory); Artefact = new Artefact((ArtefactId)"255:1", "SomeArtefact", (AgentId)"255"); AnotherArtefact = new Artefact((ArtefactId)"255:2", "AnotherArtefact", (AgentId)"255"); }
public Network(ICryptographyFactory cryptographyFactory) => _cryptographyFactory = cryptographyFactory;