示例#1
0
        public void RepeatCallsCreateDifferentIds()
        {
            // Arrange
            CommandCorrelationIdProvider provider = new CommandCorrelationIdProvider();

            // Act
            string firstId  = provider.Create();
            string secondId = provider.Create();

            // Assert
            Assert.NotEqual(firstId, secondId);
        }
示例#2
0
        public void EnsureCorrelationIdIsBasedOnGuidAndNotEmpty()
        {
            // Arrange
            CommandCorrelationIdProvider provider = new CommandCorrelationIdProvider();

            // Act
            string id = provider.Create();

            // Assert
            Assert.NotEqual(Guid.Empty, Guid.Parse(id));
        }