コード例 #1
0
        public async Task UuidBasicMethod_ExecuteAsync_ShouldReturnGuidValues()
        {
            int numberToReturn = 2;

            var target = new UuidBasicMethod(_advisoryDelayHandler);
            IEnumerable<Guid> results = await target.GenerateUuidsAsync(numberToReturn);

            results.Should().Not.Be.Null();
            results.Count().Should().Equal(numberToReturn);
        }
コード例 #2
0
        public async Task UuidBasicMethod_ExecuteAsync_ShouldReturnGuidValues()
        {
            // Arrange
            BaseMethodTest bmt = new BaseMethodTest();
            int numberToReturn = 2;

            // Act
            var target = new UuidBasicMethod(bmt.AdvisoryDelayHandler, bmt.Service);
            IEnumerable<Guid> results = await target.GenerateUuidsAsync(numberToReturn);

            // Assert
            results.Should().Not.Be.Null();
            results.Count().Should().Equal(numberToReturn);
        }