public TResult Dispatch <TResult>(Func <FakeStore, TResult> query) { FakeStore current = _db.Store.Copy(); CommitTo(current); return(query(current)); }
public EnderecoConsumer(ILogger <EnderecoConsumer> logger, IPublishEndpoint publishEndpoint, FakeStore fakeStore) { _logger = logger; _publishEndPoint = publishEndpoint; _fakeStore = fakeStore; }
public UsersController(IOptions <RabbitmqConfig> rabbitConfig, ISendEndpointProvider sendEndpoint, IPublishEndpoint publish, FakeStore fakeStore) { _fakeStore = fakeStore; _rabbitConfig = rabbitConfig.Value; _sendEndpoint = sendEndpoint; _publishEndPoint = publish; }
public SubscribeToCompanyConsumer(IOptions <RabbitmqConfig> rabbitConfig, ISendEndpointProvider sendEndpoint, IPublishEndpoint publish, FakeStore store) { _store = store; _rabbitConfig = rabbitConfig.Value; _sendEndpoint = sendEndpoint; _publishEndPoint = publish; }
public PullTests() { timeZone = DateTimeZoneProviders.Tzdb.GetSystemDefault(); store = new FakeStore(); storeFactory = new TestStoreFactory(store); Emit(NewId<LocalCalendar>(), new RemoteCalendarAdded( new FakeRemote { Id = NewId<RemoteCalendar>() })); }
public PullTests() { timeZone = DateTimeZoneProviders.Tzdb.GetSystemDefault(); store = new FakeStore(); storeFactory = new TestStoreFactory(store); Emit(NewId <LocalCalendar>(), new RemoteCalendarAdded( new FakeRemote { Id = NewId <RemoteCalendar>() })); }
private void CommitTo(FakeStore s) { _log.Actions.ForEach(a => a.Execute(s)); }
public CompaniesController(FakeStore store) { _store = store; }
private FakeStore(FakeStore other) { _docs = other._docs; }