//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldReadNeoStoreCommand() throws Throwable
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ShouldReadNeoStoreCommand()
        {
            // Given
            InMemoryClosableChannel channel = new InMemoryClosableChannel();
            NeoStoreRecord          before  = new NeoStoreRecord();
            NeoStoreRecord          after   = new NeoStoreRecord();

            after.NextProp = 42;

            (new Command.NeoStoreCommand(before, after)).Serialize(channel);

            // When
            PhysicalLogCommandReaderV3_0 reader = new PhysicalLogCommandReaderV3_0();
            Command command = reader.Read(channel);

            assertTrue(command is Command.NeoStoreCommand);

            Command.NeoStoreCommand neoStoreCommand = (Command.NeoStoreCommand)command;

            // Then
            assertEquals(before.NextProp, neoStoreCommand.Before.NextProp);
            assertEquals(after.NextProp, neoStoreCommand.After.NextProp);
        }
예제 #2
0
 public override bool VisitNeoStoreCommand(Command.NeoStoreCommand command)
 {
     _neoStores.MetaDataStore.GraphNextProp = SelectRecordByCommandVersion(command).NextProp;
     return(false);
 }