public void ValidateCurrency_ReturnsSuccessState_WhenCurrencySupported() { //Arrange var mockLogger = new Mock <ILogger <ClientCValidationService> >(); var sut = new ClientCValidationService(mockLogger.Object); //Act var result = sut.ValidateCurrency("USD"); //Assert Assert.Equal(ValidationState.Success, result); }
public void ValidateCurrency_ReturnsUnsupportedCurrencyState_WhenCurrencyUnsupported() { //Arrange var mockLogger = new Mock <ILogger <ClientCValidationService> >(); var sut = new ClientCValidationService(mockLogger.Object); var currency = Guid.NewGuid().ToString().Substring(0, 2); //Act var result = sut.ValidateCurrency(currency); //Assert Assert.Equal(ValidationState.UnsupportedCurrency, result); }