using LogosStorageClient; using LogosStorageTests; using NUnit.Framework; using Utils; namespace LogosStorageReleaseTests.DataTests { public class ThreeClientTest : AutoBootstrapDistTest { [Test] public void ThreeClient() { var primary = StartLogosStorage(s => s.WithLogFormat(LogosStorageLogFormat.Json)); var secondary = StartLogosStorage(s => s.WithLogFormat(LogosStorageLogFormat.Json)); var testFile = GenerateTestFile(10.MB()); var contentId = primary.UploadFile(testFile); AssertNodesContainFile(contentId, primary); var downloadedFile = secondary.DownloadContent(contentId); AssertNodesContainFile(contentId, primary, secondary); testFile.AssertIsEqual(downloadedFile); } } }