Exemplo n.º 1
0
		private void CanFetchTransactionFromCoinprismCore(string test)
		{
			var tester = CreateTester(test);
			var expected = ColoredTransaction.FetchColors(tester.TestedTxId, tester.Repository);
			var actual = new CoinprismColoredTransactionRepository().Get(tester.TestedTxId);
			Assert.True(actual.ToBytes().SequenceEqual(expected.ToBytes()));
		}
Exemplo n.º 2
0
		//[Fact]
		public void TestFun()
		{
			var repo = new NoSqlColoredTransactionRepository(new BlockrTransactionRepository());
			var colored = ColoredTransaction.FetchColors(uint256.Parse("b4399a545c4ddd640920d63af75e7367fe4d94b2d7f7a3423105e25ac5f165a6"), repo);

			var prismColored = new CoinprismColoredTransactionRepository().Get(uint256.Parse("b4399a545c4ddd640920d63af75e7367fe4d94b2d7f7a3423105e25ac5f165a6"));

			Assert.True(colored.ToBytes().SequenceEqual(prismColored.ToBytes()));
		}