Binboo.Core.Tests.Tests.Persistence.StorageTestCase.TestStorageIsPerCommand C# (CSharp) Method

TestStorageIsPerCommand() private method

private TestStorageIsPerCommand ( ) : void
return void
        public void TestStorageIsPerCommand()
        {
            const string command1Value = "command1 value";
            const string command2Value = "command2 value";

            using (IStorageManager manager = new StorageManager(null))
            {
                var value1 = SetValueFor(manager, Command1Id, command1Value);
                var value2 = SetValueFor(manager, Command2Id, command2Value);

                Assert.AreEqual(value1, command1Value);
                Assert.AreEqual(value2, command2Value);
            }

            using (IStorageManager manager = new StorageManager(null))
            {
                IStorage stg1 = manager.StorageFor(Command1Id);
                IStorage stg2 = manager.StorageFor(Command2Id);

                Assert.AreEqual(stg1.Value, command1Value);
                Assert.AreEqual(stg2.Value, command2Value);
            }
        }