예제 #1
0
        public void EnvironmentProvider_Mutations_Test()
        {
            var environment = VkApiProvider
                              .GetMessages()
                              .GetEnvironment();

            Assert.Equal(AccessToken, environment.AccessToken);

            VkApiProvider
            .GetMessages()
            .GetEnvironment()
            .AccessToken = "new_access_token";

            environment = VkApiProvider
                          .GetEnvironmentProvider()
                          .GetEnvironment();

            Assert.Equal(AccessToken, environment.AccessToken);
        }
예제 #2
0
 public IMessages GetMessages()
 {
     return(VkApiProvider.GetMessages());
 }