public void constructor_sets_EventPublisher_correctly() { IAzureEventPublisher eventPublisher = Mock.Of <IAzureEventPublisher>(); var sut = new AzureEventSourcedRepository <FakeUser>( Mock.Of <IAzureEventStore>(), eventPublisher, FakeUser.Factory); sut.EventPublisher.Should().BeSameAs(eventPublisher); }
public void TestInitialize() { fixture = new Fixture().Customize(new AutoMoqCustomization()); eventStore = Mock.Of <IAzureEventStore>(); eventPublisher = Mock.Of <IAzureEventPublisher>(); mementoStore = Mock.Of <IMementoStore>(); sut = new AzureEventSourcedRepository <FakeUser>( eventStore, eventPublisher, mementoStore, FakeUser.Factory, FakeUser.Factory); }