コード例 #1
0
        public async Task ShouldRegister()
        {
            //given
            var httpClient   = new MockUpsHttpClient();
            var registration = new Registration();

            //when
            await registration.Register(new PushConfig { VariantId = "dummy" }, httpClient);

            //then
            Assert.IsTrue(httpClient.Installation.deviceToken != null);
        }
コード例 #2
0
        public async Task ShouldRegister()
        {
            //given
            var httpClient = new MockUpsHttpClient();
            var registration = new Registration();

            //when
            await registration.Register(new PushConfig {VariantId = "dummy"}, httpClient);

            //then
            Assert.IsTrue(httpClient.Installation.deviceToken != null);
        }