Пример #1
0
        public async Task Get_Mosaic_Names()
        {
            using (var httpTest = new HttpTest())
            {
                var fakeJson =
                    TestHelper.LoadJsonFileToArray(@"Testdata\\Mosaic\\GetMosaicNames.json");

                httpTest.RespondWithJson(fakeJson);

                var list = new List <string>
                {
                    "0DC67FBE1CAD29E3"
                };
                var mosaicNames = await _mosaicHttp.GetMosaicNames(list);

                mosaicNames.Should().HaveCountGreaterThan(0);
                mosaicNames[0].Names[0].Should().BeEquivalentTo("cat.currency");
            }
        }
Пример #2
0
        public async Task Get_Mosaic_Names()
        {
            using (var httpTest = new HttpTest())
            {
                var fakeJson =
                    TestHelper.LoadJsonFileToArray(@"Testdata\\Mosaic\\GetMosaicNames.json");

                httpTest.RespondWithJson(fakeJson);

                var list = new List <string>
                {
                    "037C5AF6052A9F7D",
                    "34B40B8AD0CEE3F3",
                };
                var mosaicNames = await _mosaicHttp.GetMosaicNames(list);

                mosaicNames.Should().NotBeNullOrEmpty();
                mosaicNames[0].Names.Should().Equals("prx.so");
                mosaicNames[1].Names.Should().Equals("prx.sm");
            }
        }