private static Mock<IFsaWorker> CreateMockedFsaWorker(FileStoreMethod workerMethod) { Mock<IFsaWorker> workerMock = new Mock<IFsaWorker>(); workerMock.Setup(worker => worker.Method).Returns(workerMethod); workerMock.Setup(worker => worker.ID).Returns(Guid.NewGuid()); return workerMock; }
private void RegisterMockedFsaWorker(FileStoreMethod workerMethod) { var mockedWorker = CreateMockedFsaWorker(workerMethod); _fsaWorkerProvider.RegisterWorker(mockedWorker.Object); }