public void Process_WithNotRegisteredHandler_ShouldThrowException() { // Assign FakeUnregisteredQuery query = new FakeUnregisteredQuery(); IQueryProcessor processor = new FakeQueryProcessor(); // Act, Assert Assert.Throws <ArgumentException>(() => processor.Process(query)); }
public void Process_WithRegisteredHandler_ShouldReturnNotNull() { // Assign FakeQuery query = new FakeQuery(); IQueryProcessor processor = new FakeQueryProcessor(); // Act FakeResult result = processor.Process(query); // Assert Assert.NotNull(result); }