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); }
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); }