Beispiel #1
0
        public void when_gang_id_is_null()
        {
            IQueryCollection qs = new QueryCollection();

            var actual = WebSocketGangConfiguration.GetGangParameters(qs);

            Assert.Null(actual);
        }
Beispiel #2
0
        public void when_gang_id_is_not_null()
        {
            var gangId          = "2D71D59D29BB4735B76CCEEAFC8CD652";
            IQueryCollection qs = new QueryCollection(
                new Dictionary <string, StringValues> {
                { "gangId", gangId }
            });

            var actual = WebSocketGangConfiguration.GetGangParameters(qs);

            Assert.NotNull(actual);
            Assert.Equal(gangId, actual.GangId);
        }