All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ing.baker.runtime.inmemory.InMemoryInteractionManager.scala Maven / Gradle / Ivy

The newest version!
package com.ing.baker.runtime.inmemory

import cats.effect.IO
import com.ing.baker.runtime.model.{InteractionInstance, InteractionManager}

object InMemoryInteractionManager {

  def build(implementations: List[InteractionInstance[IO]]): IO[InMemoryInteractionManager] =
    IO(new InMemoryInteractionManager(implementations))
}

final class InMemoryInteractionManager(implementations: List[InteractionInstance[IO]]) extends InteractionManager[IO] {

  override val allowSupersetForOutputTypes: Boolean = false

  override def listAll: IO[List[InteractionInstance[IO]]] = IO(implementations)

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy