public IEnumerator TestLoomInit() { return(LoomTestContext.AsyncTest( async() => { Assert.IsNull(LoomTestContext.BackendFacade.Contract); await LoomTestContext.BackendFacade.CreateContract(LoomTestContext.BackendDataControlMediator .UserDataModel.PrivateKey); Assert.IsNotNull(LoomTestContext.BackendFacade.Contract); })); }
public IEnumerator TestLoomInit_Wrong_Reader_Link() { return(LoomTestContext.AsyncTest( async() => { LoomTestContext.BackendFacade.ReaderHost = "https://www.google.com"; await LoomTestContext.AssertThrowsAsync( async() => { await LoomTestContext.BackendFacade.CreateContract(LoomTestContext.BackendDataControlMediator .UserDataModel.PrivateKey); }); })); }
public IEnumerator TestLoomInit_Empty_Reader_Link() { return(LoomTestContext.AsyncTest( async() => { LoomTestContext.BackendFacade.ReaderHost = string.Empty; await LoomTestContext.AssertThrowsAsync( async() => { await LoomTestContext.BackendFacade.CreateContract(LoomTestContext.BackendDataControlMediator .UserDataModel.PrivateKey); }); })); }