Esempio n. 1
0
        public void ShouldMeshesIsNotNull()
        {
            var tokenService   = new Mock <ITokenService>();
            var requestService = new Mock <IRequestService>();

            var connection = new MeshyConnection(tokenService.Object, requestService.Object, Generator.RandomString(10));

            Assert.NotNull(connection.Meshes);
        }
Esempio n. 2
0
        public void ShouldSetAuthenticationIdDuringCreation()
        {
            var tokenService   = new Mock <ITokenService>();
            var requestService = new Mock <IRequestService>();

            var authenticationId = Generator.RandomString(10);
            var connection       = new MeshyConnection(tokenService.Object, requestService.Object, authenticationId);

            Assert.Equal(authenticationId, connection.AuthenticationId);
        }