public void ValidateDestination_ReturnsSuccessState_WhenTypeSupported_WithDestination(OrderType orderType, string destination) { //Arrange var mockLogger = new Mock <ILogger <ClientCValidationService> >(); var sut = new ClientCValidationService(mockLogger.Object); //Act var result = sut.ValidateDestination(destination, orderType); //Assert Assert.Equal(ValidationState.Success, result); }
public void ValidateDestination_ReturnsUnsupportedTypeState_WhenTypeUnsupported() { //Arrange var mockLogger = new Mock <ILogger <ClientCValidationService> >(); var sut = new ClientCValidationService(mockLogger.Object); //Act var result = sut.ValidateDestination(It.IsAny <string>(), OrderType.None); //Assert Assert.Equal(ValidationState.UnsupportedType, result); }