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()); }
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()); }