public void RepeatCallsCreateDifferentIds() { // Arrange CommandCorrelationIdProvider provider = new CommandCorrelationIdProvider(); // Act string firstId = provider.Create(); string secondId = provider.Create(); // Assert Assert.NotEqual(firstId, secondId); }
public void EnsureCorrelationIdIsBasedOnGuidAndNotEmpty() { // Arrange CommandCorrelationIdProvider provider = new CommandCorrelationIdProvider(); // Act string id = provider.Create(); // Assert Assert.NotEqual(Guid.Empty, Guid.Parse(id)); }