From 7518b4fdbf3e148dbc001801a9e96fcd3abd9ba7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Jankowski?= Date: Thu, 21 Mar 2019 17:45:18 -0700 Subject: [PATCH] Move Sample folder to CloneConsoleRun --- CosmosClone/CloneConsoleRun/App.config | 4 ++ .../CloneConsoleRun/CloneConsoleRun.csproj | 38 +++++++++++++++++++ CosmosClone/CloneConsoleRun/Program.cs | 1 - .../Sample/CosmosSampleDBHelper.cs | 17 ++++----- .../Sample/Entity.cs | 14 +++---- .../Sample/EntityV2.cs | 14 +++---- .../Sample/SampleDBCreator.cs | 24 ++++++------ CosmosClone/CloneConsoleRun/packages.config | 8 ++++ .../CosmosCloneCommon.csproj | 4 -- .../Utility/ObjectScrubber.cs | 4 -- 10 files changed, 78 insertions(+), 50 deletions(-) rename CosmosClone/{CosmosCloneCommon => CloneConsoleRun}/Sample/CosmosSampleDBHelper.cs (95%) rename CosmosClone/{CosmosCloneCommon => CloneConsoleRun}/Sample/Entity.cs (94%) rename CosmosClone/{CosmosCloneCommon => CloneConsoleRun}/Sample/EntityV2.cs (90%) rename CosmosClone/{CosmosCloneCommon => CloneConsoleRun}/Sample/SampleDBCreator.cs (89%) diff --git a/CosmosClone/CloneConsoleRun/App.config b/CosmosClone/CloneConsoleRun/App.config index 6f12b01..0ee77ab 100644 --- a/CosmosClone/CloneConsoleRun/App.config +++ b/CosmosClone/CloneConsoleRun/App.config @@ -65,6 +65,10 @@ + + + + \ No newline at end of file diff --git a/CosmosClone/CloneConsoleRun/CloneConsoleRun.csproj b/CosmosClone/CloneConsoleRun/CloneConsoleRun.csproj index e5209e4..4314182 100644 --- a/CosmosClone/CloneConsoleRun/CloneConsoleRun.csproj +++ b/CosmosClone/CloneConsoleRun/CloneConsoleRun.csproj @@ -11,6 +11,8 @@ v4.6.1 512 true + + AnyCPU @@ -32,11 +34,36 @@ 4 + + ..\packages\Microsoft.Azure.CosmosDB.BulkExecutor.1.2.0\lib\net451\Microsoft.Azure.CosmosDB.BulkImport.dll + + + ..\packages\Microsoft.Azure.DocumentDB.2.1.3\lib\net461\Microsoft.Azure.Documents.Client.dll + + + ..\packages\MongoDB.Bson.2.4.4\lib\net45\MongoDB.Bson.dll + ..\packages\Newtonsoft.Json.10.0.2\lib\net45\Newtonsoft.Json.dll + + ..\packages\System.Buffers.4.5.0\lib\netstandard2.0\System.Buffers.dll + + + ..\packages\System.Memory.4.5.0\lib\netstandard2.0\System.Memory.dll + + + ..\packages\System.Net.Http.WinHttpHandler.4.5.0\lib\net461\System.Net.Http.WinHttpHandler.dll + + + + ..\packages\System.Numerics.Vectors.4.4.0\lib\net46\System.Numerics.Vectors.dll + + + ..\packages\System.Runtime.CompilerServices.Unsafe.4.5.0\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll + @@ -47,6 +74,10 @@ + + + + @@ -59,4 +90,11 @@ + + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + \ No newline at end of file diff --git a/CosmosClone/CloneConsoleRun/Program.cs b/CosmosClone/CloneConsoleRun/Program.cs index 8934e25..d989ca9 100644 --- a/CosmosClone/CloneConsoleRun/Program.cs +++ b/CosmosClone/CloneConsoleRun/Program.cs @@ -10,7 +10,6 @@ using System.Threading.Tasks; using CosmosCloneCommon; using CosmosCloneCommon.Migrator; using CosmosCloneCommon.Model; -using CosmosCloneCommon.Sample; using CosmosCloneCommon.Utility; using logger = CosmosCloneCommon.Utility.CloneLogger; using Newtonsoft.Json; diff --git a/CosmosClone/CosmosCloneCommon/Sample/CosmosSampleDBHelper.cs b/CosmosClone/CloneConsoleRun/Sample/CosmosSampleDBHelper.cs similarity index 95% rename from CosmosClone/CosmosCloneCommon/Sample/CosmosSampleDBHelper.cs rename to CosmosClone/CloneConsoleRun/Sample/CosmosSampleDBHelper.cs index 98f1fa5..d2cad27 100644 --- a/CosmosClone/CosmosCloneCommon/Sample/CosmosSampleDBHelper.cs +++ b/CosmosClone/CloneConsoleRun/Sample/CosmosSampleDBHelper.cs @@ -1,19 +1,16 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Microsoft.Azure.Documents.Client; -using Microsoft.Azure.Documents; -using CosmosCloneCommon.Model; using logger = CosmosCloneCommon.Utility.CloneLogger; -using CosmosCloneCommon.Utility; -namespace CosmosCloneCommon.Sample +namespace CloneConsoleRun.Sample { + using System; + using System.Threading.Tasks; + using CosmosCloneCommon.Utility; + using Microsoft.Azure.Documents; + using Microsoft.Azure.Documents.Client; + public class CosmosSampleDBHelper { private ConnectionPolicy ConnectionPolicy; diff --git a/CosmosClone/CosmosCloneCommon/Sample/Entity.cs b/CosmosClone/CloneConsoleRun/Sample/Entity.cs similarity index 94% rename from CosmosClone/CosmosCloneCommon/Sample/Entity.cs rename to CosmosClone/CloneConsoleRun/Sample/Entity.cs index 3455208..4ad738c 100644 --- a/CosmosClone/CosmosCloneCommon/Sample/Entity.cs +++ b/CosmosClone/CloneConsoleRun/Sample/Entity.cs @@ -2,16 +2,12 @@ // Licensed under the MIT License. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Threading; -using CosmosCloneCommon.Model; - -namespace CosmosCloneCommon.Sample +namespace CloneConsoleRun.Sample { + using System; + using System.Collections.Generic; + using CosmosCloneCommon.Model; + public class Entity { public int Id { get; set; } diff --git a/CosmosClone/CosmosCloneCommon/Sample/EntityV2.cs b/CosmosClone/CloneConsoleRun/Sample/EntityV2.cs similarity index 90% rename from CosmosClone/CosmosCloneCommon/Sample/EntityV2.cs rename to CosmosClone/CloneConsoleRun/Sample/EntityV2.cs index fa224dc..d3e10fb 100644 --- a/CosmosClone/CosmosCloneCommon/Sample/EntityV2.cs +++ b/CosmosClone/CloneConsoleRun/Sample/EntityV2.cs @@ -1,16 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Threading; -using CosmosCloneCommon.Model; - -namespace CosmosCloneCommon.Sample +namespace CloneConsoleRun.Sample { + using System; + using System.Collections.Generic; + using CosmosCloneCommon.Model; + public class EntityV2 { public string FullName { get; set; } diff --git a/CosmosClone/CosmosCloneCommon/Sample/SampleDBCreator.cs b/CosmosClone/CloneConsoleRun/Sample/SampleDBCreator.cs similarity index 89% rename from CosmosClone/CosmosCloneCommon/Sample/SampleDBCreator.cs rename to CosmosClone/CloneConsoleRun/Sample/SampleDBCreator.cs index 7574450..49741dc 100644 --- a/CosmosClone/CosmosCloneCommon/Sample/SampleDBCreator.cs +++ b/CosmosClone/CloneConsoleRun/Sample/SampleDBCreator.cs @@ -2,23 +2,21 @@ // Licensed under the MIT License. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Microsoft.Azure.Documents; -using Microsoft.Azure.Documents.Client; -using CosmosCloneCommon.Utility; //using CollectionMigrator.Model; -using System.Diagnostics; -using Microsoft.Azure.CosmosDB.BulkExecutor; -using Microsoft.Azure.CosmosDB.BulkExecutor.BulkImport; -using Microsoft.Azure.Documents.Linq; using logger = CosmosCloneCommon.Utility.CloneLogger; -namespace CosmosCloneCommon.Sample +namespace CloneConsoleRun.Sample { + using System; + using System.Collections.Generic; + using System.Diagnostics; + using System.Linq; + using System.Threading.Tasks; + using CosmosCloneCommon.Utility; + using Microsoft.Azure.CosmosDB.BulkExecutor.BulkImport; + using Microsoft.Azure.Documents; + using Microsoft.Azure.Documents.Client; + public class SampleDBCreator { #region declare variables diff --git a/CosmosClone/CloneConsoleRun/packages.config b/CosmosClone/CloneConsoleRun/packages.config index 50e4724..3bdc108 100644 --- a/CosmosClone/CloneConsoleRun/packages.config +++ b/CosmosClone/CloneConsoleRun/packages.config @@ -1,4 +1,12 @@  + + + + + + + + \ No newline at end of file diff --git a/CosmosClone/CosmosCloneCommon/CosmosCloneCommon.csproj b/CosmosClone/CosmosCloneCommon/CosmosCloneCommon.csproj index f3ffbbf..4e1c594 100644 --- a/CosmosClone/CosmosCloneCommon/CosmosCloneCommon.csproj +++ b/CosmosClone/CosmosCloneCommon/CosmosCloneCommon.csproj @@ -79,10 +79,6 @@ - - - - diff --git a/CosmosClone/CosmosCloneCommon/Utility/ObjectScrubber.cs b/CosmosClone/CosmosCloneCommon/Utility/ObjectScrubber.cs index 8163d9f..a60577f 100644 --- a/CosmosClone/CosmosCloneCommon/Utility/ObjectScrubber.cs +++ b/CosmosClone/CosmosCloneCommon/Utility/ObjectScrubber.cs @@ -4,12 +4,8 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Newtonsoft.Json; using Newtonsoft.Json.Linq; using CosmosCloneCommon.Model; -using CosmosCloneCommon.Sample; namespace CosmosCloneCommon.Utility {