public async Task Should_Get_Mosaic_Info() { using (var httpTest = new HttpTest()) { var fakeJson = TestHelper.LoadJsonFileToObject(@"Testdata\\Mosaic\\GetMosaicInfoFromHex.json"); httpTest.RespondWithJson(fakeJson); const string mosaicHex = "037C5AF6052A9F7D"; var mosaicId = new MosaicId(mosaicHex); var mosaicInfo = await _mosaicHttp.GetMosaic(mosaicId); mosaicInfo.Should().NotBeNull(); mosaicInfo.MetaId.Should().Equals("611B3B866E4BF54EE822308B"); } }
public async Task Should_Get_Mosaic_Info() { using (var httpTest = new HttpTest()) { var fakeJson = TestHelper.LoadJsonFileToObject(@"Testdata\\Mosaic\\GetMosaicInfoFromHex.json"); httpTest.RespondWithJson(fakeJson); const string mosaicHex = "5D4BF0BA9EEB54FCB5CD4E7F"; var mosaicId = new MosaicId(mosaicHex); var mosaicInfo = await _mosaicHttp.GetMosaic(mosaicId); mosaicInfo.Should().NotBeNull(); mosaicInfo.Divisibility.Should().Be(0); mosaicInfo.Duration.Should().Be(1000); mosaicInfo.IsLevyMutable.Should().BeFalse(); mosaicInfo.IsSupplyMutable.Should().BeTrue(); mosaicInfo.IsTransferable.Should().BeTrue(); mosaicInfo.Supply.Should().Be(1000000); } }