示例#1
0
        public int ApproveAllMismatches(
            [Service] ISnapshooterService snapshooterService)
        {
            int count = snapshooterService
                        .ApproveAllMismatches();

            return(count);
        }
示例#2
0
        public ApproveSnapshotPayload ApproveSnapshot(
            ApproveSnapshotInput input,
            [Service] ISnapshooterService snapshooterService)
        {
            SnapshotContent?snap = snapshooterService
                                   .ApproveSnapshot(input.FileName, input.MissmatchFileName);

            return(new ApproveSnapshotPayload(snap));
        }
示例#3
0
 public SnapshooterCommand(ISnapshooterService snapshooterService)
 {
     _snapshooterService = snapshooterService;
 }
示例#4
0
 public SnapshotContent GetSnapshooterSnapshot(
     GetSnapshooterSnapshotInput input,
     [Service] ISnapshooterService snapshooterService)
 {
     return(snapshooterService.GetSnapshot(input.FileName, input.MissmatchFileName));
 }
示例#5
0
 public IEnumerable <SnapshotDirectory> GetSnapshooterDirectories(
     bool withMismatchOnly,
     [Service] ISnapshooterService snapshooterService)
 {
     return(snapshooterService.GetDirectories(withMismatchOnly));
 }
示例#6
0
 public IEnumerable <SnapshotInfo> GetSnapshooterSnaps(
     bool withMismatchOnly,
     [Service] ISnapshooterService snapshooterService)
 {
     return(snapshooterService.GetSnapshots(withMismatchOnly));
 }