public void AllNotificationPropertiesAreCopiedFromRequestToEvent() { using (var domain = new EntitiesDomain()) { Feature.WithScenario("when converting a notification request to an event all notification properties are copied across") .Given(domain.TheNotificationRequestIsFullyPopulated) .When(domain.TheNotificationRequestIsConvertedToAnEvent) .Then(domain.AllTheNotificationEventPropertiesMatchTheRequestNotification) .ExecuteWithReport(); } }
public void HealthCheckResultDeserialisePreviousVersion(string version) { using (var domain = new EntitiesDomain()) { Feature.WithScenario("") .Given(domain.TheHealthCheckResultDataFilenameIsBuiltForVersion_, version) .When(domain.TheHealthCheckResultXmlIsDeserialised) .Then(domain.ThrewNoException) .And(domain.TheResultShouldNotBeNull) .ExecuteWithReport(); } }