コード例 #1
0
        public void WhenResolveTimeStampGenerator_ThenResult_ShouldBeAsExpectedType()
        {
            var resolver = new MessageIdGeneratorResolver();

            IMessageIdGenerator actual = resolver.Resolve(MessageIdGeneratortype.Timestamp);

            Assert.IsType <TimestampMessageIdGenerator>(actual);
        }
コード例 #2
0
        public void WhenResolveMd5Generator_ThenResult_ShouldBeAsExpectedType()
        {
            var resolver = new MessageIdGeneratorResolver();

            IMessageIdGenerator actual = resolver.Resolve(MessageIdGeneratortype.Md5);

            Assert.IsType <Md5MessageIdGenerator>(actual);
        }