public void TrackPackagePushEventThrowsIfUserIsNull() { // Arrange var service = CreateService(); // Act & Assert Assert.Throws <ArgumentNullException>(() => service.TrackPackagePushEvent(fakes.Package.Packages.First(), null, Fakes.ToIdentity(fakes.User))); }
public void TrackVerifyPackageKeyEventThrowsIfUserIsNull() { // Arrange var service = CreateService(); // Act & Assert Assert.Throws <ArgumentNullException>(() => service.TrackVerifyPackageKeyEvent("id", "1.0.0", null, Fakes.ToIdentity(fakes.User), 200)); }
public void WhenNotClaimsIdentity_ReturnsEmpty() { var identity = Fakes.ToIdentity(new User("user")); Assert.Equal("", identity.AuthenticationType); }