コード例 #1
0
        public void GetTypesShouldReturnCorrectType()
        {
            // Arrange.
            var source = new ArrayMessageRegistration<ICommand>(
                typeof(SubmitOrderCommand),
                typeof(DeleteOrderCommand));
            
            // Act.
            var types = source.GetTypes();

            // Assert.
            Assert.Equal(2, types.Length);
            Assert.Equal(typeof(SubmitOrderCommand), types[0]);
            Assert.Equal(typeof(DeleteOrderCommand), types[1]);
        }
コード例 #2
0
        public void GetTypesShouldReturnCorrectType()
        {
            // Arrange.
            var source = new ArrayMessageRegistration <ICommand>(
                typeof(SubmitOrderCommand),
                typeof(DeleteOrderCommand));

            // Act.
            var types = source.GetTypes();

            // Assert.
            Assert.Equal(2, types.Length);
            Assert.Equal(typeof(SubmitOrderCommand), types[0]);
            Assert.Equal(typeof(DeleteOrderCommand), types[1]);
        }