Пример #1
0
 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);
     }));
 }
Пример #2
0
 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);
         });
     }));
 }
Пример #3
0
 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);
         });
     }));
 }