public void UseBuilderToCreateActivationEvent() { var result = new ActionBuilder <ActivateAction>() .WithCode("HAPPY") .WithClient(8) .Build(() => new ActivateAction()); //Assert Assert.That(result.Code, Is.EqualTo("HAPPY")); Assert.That(result.Client, Is.EqualTo(8)); }
public void UseBuilderToCreateDeactivationEvent() { var result = new ActionBuilder <DeactivateAction>() .WithCode("SAD") .WithClient(2) .Build(() => new DeactivateAction()); result.Wazuuup = "Oh yeah - generics!"; //Assert Assert.That(result.Code, Is.EqualTo("SAD")); Assert.That(result.Client, Is.EqualTo(2)); Assert.That(result.Wazuuup, Is.EqualTo("Oh yeah - generics!")); }