예제 #1
0
        public void WebThreeState_Should_Exist()
        {
            webThreeState = Store.GetState <WebThreeState>();

            webThreeState.ShouldNotBe(null);

            webThreeState.OwnedTokenIdList.Count.ShouldBe(0);
        }
예제 #2
0
        public async Task ClientActionTest()
        {
            var Action = new GetNftTypesClientFeaturesAction();

            WebThreeState ActionResponse = await Mediator.Send(Action);

            ActionResponse.ShouldNotBe(null);
            ActionResponse.TotalNftTypes.ShouldBeGreaterThan((uint)2);
        }
예제 #3
0
        public async Task ClientActionTest()
        {
            var aGetNftByTypeAction =
                new GetNftByTypeAction
            {
                GetNftType = 4
            };

            WebThreeState aGetNftByTypeResponse = await Mediator.Send(aGetNftByTypeAction);

            aGetNftByTypeResponse.ShouldNotBe(null);
            aGetNftByTypeResponse.CurrentNftTemplate.ShouldNotBe(null);

            aGetNftByTypeResponse.CurrentNftTemplate.Name.ShouldBeOfType <string>();
        }
        public async Task ShouldReturnWebThreeState()
        {
            WebThreeState webThreeState = await Mediator.Send(new GetAllOwnedTokensAction());

            webThreeState.ShouldNotBe(null);
        }