public void GetTypesShouldReturnCorrectType()
        {
            // Arrange.
            var source = new TypeMessageRegistration<ICommand>(typeof(CreateOrderCommand));
            
            // Act.
            var types = source.GetTypes();

            // Assert.
            Assert.Equal(1, types.Length);
            Assert.Equal(typeof(CreateOrderCommand), types.FirstOrDefault());
        }
示例#2
0
        public void GetTypesShouldReturnCorrectType()
        {
            // Arrange.
            var source = new TypeMessageRegistration <ICommand>(typeof(CreateOrderCommand));

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

            // Assert.
            Assert.Equal(1, types.Length);
            Assert.Equal(typeof(CreateOrderCommand), types.FirstOrDefault());
        }