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]);
        }
Ejemplo n.º 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]);
        }