public void Constructor_ExpectedValues()
        {
            // Call
            var provider = new WaveHeightCalculationMessageProvider("1/10000");

            // Assert
            Assert.IsInstanceOf <ICalculationMessageProvider>(provider);
        }
        public void GetActivityDescription_VariousParameters_ReturnsExpectedValue(string name)
        {
            // Setup
            const string calculationIdentifier = "1/10000";
            var          provider = new WaveHeightCalculationMessageProvider(calculationIdentifier);

            // Call
            string description = provider.GetActivityDescription(name);

            // Assert
            string expectedDescription = $"Golfhoogte berekenen voor locatie '{name}' ({calculationIdentifier})";

            Assert.AreEqual(expectedDescription, description);
        }
        public void GetCalculatedNotConvergedMessage_VariousParameters_ReturnsExpectedValue(string name)
        {
            // Setup
            const string calculationIdentifier = "1/10000";
            var          provider = new WaveHeightCalculationMessageProvider(calculationIdentifier);

            // Call
            string message = provider.GetCalculatedNotConvergedMessage(name);

            // Assert
            string expectedMessage = $"Golfhoogte berekening voor locatie '{name}' ({calculationIdentifier}) is niet geconvergeerd.";

            Assert.AreEqual(expectedMessage, message);
        }
        public void GetCalculationFailedMessage_VariousParameters_ReturnsExpectedValue(string name)
        {
            // Setup
            const string calculationIdentifier = "1/10000";
            var          provider = new WaveHeightCalculationMessageProvider(calculationIdentifier);

            // Call
            string message = provider.GetCalculationFailedMessage(name);

            // Assert
            string expectedMessage = $"Er is een fout opgetreden tijdens de golfhoogte berekening voor locatie '{name}' ({calculationIdentifier}). " +
                                     "Er is geen foutrapport beschikbaar.";

            Assert.AreEqual(expectedMessage, message);
        }
        public void GetCalculationFailedWithErrorReportMessage_ValidNames_ExpectedValues(string name)
        {
            // Setup
            const string calculationIdentifier = "1/10000";
            var          provider       = new WaveHeightCalculationMessageProvider(calculationIdentifier);
            const string failureMessage = "It failed";

            // Call
            string message = provider.GetCalculationFailedWithErrorReportMessage(name, failureMessage);

            // Assert
            string expectedMessage = $"Er is een fout opgetreden tijdens de golfhoogte berekening voor locatie '{name}' ({calculationIdentifier}). " +
                                     $"Bekijk het foutrapport door op details te klikken.{Environment.NewLine}{failureMessage}";

            Assert.AreEqual(expectedMessage, message);
        }