protected SnapperCore(ISnapshotStore snapshotStore, ISnapshotUpdateDecider snapshotUpdateDecider, ISnapshotComparer snapshotComparer) { _snapshotStore = snapshotStore; _snapshotUpdateDecider = snapshotUpdateDecider; _snapshotComparer = snapshotComparer; }
public NUnitSnapper(ISnapshotStore snapshotStore, ISnapshotUpdateDecider snapshotUpdateDecider, ISnapshotComparer snapshotComparer, SnapshotIdResolver snapshotIdResolver, JsonSnapshotSanitiser snapshotSanitiser) : base(snapshotStore, snapshotUpdateDecider, snapshotComparer) { _snapshotIdResolver = snapshotIdResolver; _snapshotSanitiser = snapshotSanitiser; }
/// <summary> /// Initializes a new instance of the <see cref="SnapshotAssert"/> class. /// </summary> /// <param name="snapshotSerializer">The serializer of the snapshot object.</param> /// <param name="snapshotFileHandler">The snapshot file handler.</param> /// <param name="snapshotEnvironmentCleaner">The environment cleanup utility.</param> /// <param name="snapshotComparer">The snaspshot text comparer.</param> public SnapshotAssert(ISnapshotSerializer snapshotSerializer, ISnapshotFileHandler snapshotFileHandler, ISnapshotEnvironmentCleaner snapshotEnvironmentCleaner, ISnapshotComparer snapshotComparer) { _snapshotSerializer = snapshotSerializer ?? throw new ArgumentNullException(nameof(snapshotSerializer)); _snapshotFileHandler = snapshotFileHandler ?? throw new ArgumentNullException(nameof(snapshotFileHandler)); _snapshotEnvironmentCleaner = snapshotEnvironmentCleaner ?? throw new ArgumentNullException(nameof(snapshotEnvironmentCleaner)); _snapshotComparer = snapshotComparer ?? throw new ArgumentNullException(nameof(snapshotComparer)); }
public SnapperCoreProxy(ISnapshotStore snapshotStore, ISnapshotUpdateDecider snapshotUpdateDecider, ISnapshotComparer snapshotComparer) : base(snapshotStore, snapshotUpdateDecider, snapshotComparer) { }
public JsonSnapshotComparerTests() { _comparer = new JsonSnapshotComparer(); }