public void Should_ConfiguredCorrectly() { // Arrange // Act var sut = new NeverNotificationScheduleStrategy(); // Assert sut.Mode.Should().Be(SubscriptionMode.Never); }
public void Should_CalculateSchedule_ThrowException_WhenTheSubscriptionTypeIsIncorrect(SubscriptionMode mode) { // Arrange var sut = new NeverNotificationScheduleStrategy(); // Act Action action = () => sut.CalculateSchedule(_fixture.GetSubscription(mode), DateTime.Today, 1); // Assert action.Should().Throw <ArgumentException>(); }
public void Should_CalculateSchedule_ReturnTheCorrectDateRange_WhenStartDateAndNumberOfDaysAreValid() { // Arrange var sut = new NeverNotificationScheduleStrategy(); // Act var actual = sut.CalculateSchedule(new NeverSubscription(), DateTime.Today, 1); // Assert actual.Should().BeEmpty(); }