public void Returns_true() { //Arrange //Act var notificationsUsingLookup = new NotificationsUsingLookup(); //Assert Assert.True(notificationsUsingLookup.EmailIfAvailable); }
public void InitializesWithNotificationsUsingLookup() { //Arrange var notificationsUsingLookup = new NotificationsUsingLookup(); //Act var portalSigner = new Signer(new PersonalIdentificationNumber("999999999"), notificationsUsingLookup); //Assert Assert.Equal(notificationsUsingLookup, portalSigner.NotificationsUsingLookup); }
public void Converts_notifications_using_lookup_successfully() { //Arrange var source = new NotificationsUsingLookup { SmsIfAvailable = true }; var expected = new notificationsusinglookup { email = new enabled(), sms = new enabled() }; //Act var actual = DataTransferObjectConverter.ToDataTransferObject(source); //Assert var comparator = new Comparator(); IEnumerable <IDifference> differences; comparator.AreEqual(expected, actual, out differences); Assert.Empty(differences); }