diff --git a/WebconWrapper.ConfigServices.IntegrationTests/DAL/AttributesRepoTests.cs b/WebconWrapper.ConfigServices.IntegrationTests/DAL/AttributesRepoTests.cs new file mode 100644 index 0000000..05c6ed2 --- /dev/null +++ b/WebconWrapper.ConfigServices.IntegrationTests/DAL/AttributesRepoTests.cs @@ -0,0 +1,41 @@ +using FluentAssertions; +using Moq; +using System; +using WebconWrapper.ConfigServices.DAL; +using Xunit; + +namespace WebconWrapper.ConfigServices.IntegrationTests.DAL +{ + public class AttributesRepoTests : IDisposable + { + private MockRepository mockRepository; + + public AttributesRepoTests() + { + this.mockRepository = new MockRepository(MockBehavior.Strict); + + + } + + public void Dispose() + { + this.mockRepository.VerifyAll(); + } + + private AttributesRepo CreateAttributesRepo() + { + return new AttributesRepo(""); // TODO + } + + [Fact] + public void GetAll_StateUnderTest_ExpectedBehavior() + { + var unitUnderTest = CreateAttributesRepo(); + + var result = unitUnderTest.GetAll(); + + result.Should().NotBeNull(); + result.Should().HaveCountGreaterThan(0); + } + } +} diff --git a/WebconWrapper.ConfigServices.IntegrationTests/Properties/AssemblyInfo.cs b/WebconWrapper.ConfigServices.IntegrationTests/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..d311636 --- /dev/null +++ b/WebconWrapper.ConfigServices.IntegrationTests/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("WebconWrapper.ConfigServices.IntegrationTests")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("WebconWrapper.ConfigServices.IntegrationTests")] +[assembly: AssemblyCopyright("Copyright © 2015")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("9abbd6a9-5f95-442a-88db-3fc1ebf374a7")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/WebconWrapper.ConfigServices.IntegrationTests/WebconWrapper.ConfigServices.IntegrationTests.csproj b/WebconWrapper.ConfigServices.IntegrationTests/WebconWrapper.ConfigServices.IntegrationTests.csproj new file mode 100644 index 0000000..18f3d7a --- /dev/null +++ b/WebconWrapper.ConfigServices.IntegrationTests/WebconWrapper.ConfigServices.IntegrationTests.csproj @@ -0,0 +1,142 @@ + + + + + + Debug + AnyCPU + {2E3DF5C2-8A38-4A03-86D7-8D463C917E47} + Library + Properties + WebconWrapper.ConfigServices.IntegrationTests + WebconWrapper.ConfigServices.IntegrationTests + v4.5 + 512 + {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 10.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + $(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages + False + UnitTest + + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\Castle.Core.4.3.1\lib\net45\Castle.Core.dll + + + ..\packages\FluentAssertions.5.4.1\lib\net45\FluentAssertions.dll + + + ..\packages\Moq.4.10.0\lib\net45\Moq.dll + + + + + + + + + ..\packages\System.Runtime.InteropServices.RuntimeInformation.4.3.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll + + + ..\packages\System.Threading.Tasks.Extensions.4.3.0\lib\portable-net45+win8+wp8+wpa81\System.Threading.Tasks.Extensions.dll + + + ..\packages\System.ValueTuple.4.4.0\lib\netstandard1.0\System.ValueTuple.dll + + + + + ..\packages\xunit.abstractions.2.0.2\lib\net35\xunit.abstractions.dll + True + + + ..\packages\xunit.assert.2.4.0\lib\netstandard1.1\xunit.assert.dll + + + ..\packages\xunit.extensibility.core.2.4.0\lib\netstandard1.1\xunit.core.dll + + + ..\packages\xunit.extensibility.execution.2.4.0\lib\netstandard1.1\xunit.execution.dotnet.dll + + + + + + + + + + + + + + + + + + + + + + + {819632a0-f75b-40b4-880f-6e8e1b18a1a9} + WebconWrapper.ConfigServices + + + + + + + False + + + False + + + False + + + False + + + + + + + + + This project references NuGet package(s) that are missing on this computer. Enable 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/WebconWrapper.ConfigServices.IntegrationTests/packages.config b/WebconWrapper.ConfigServices.IntegrationTests/packages.config new file mode 100644 index 0000000..bf3f521 --- /dev/null +++ b/WebconWrapper.ConfigServices.IntegrationTests/packages.config @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/WebconWrapper.ConfigServices/ConfigServices.Designer.cs b/WebconWrapper.ConfigServices/ConfigServices.Designer.cs new file mode 100644 index 0000000..c472aa4 --- /dev/null +++ b/WebconWrapper.ConfigServices/ConfigServices.Designer.cs @@ -0,0 +1,91 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace WebconWrapper.ConfigServices { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + public class ConfigServices { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal ConfigServices() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WebconWrapper.ConfigServices.ConfigServices", typeof(ConfigServices).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to SELECT + /// wf.WF_Name as WF_Name, + /// c.[WFCON_ID] as A_Id + /// , c.[WFCON_FDEFID] + /// , c.[WFCON_DEFID] as DEFID + /// , c.[WFCON_FieldTypeID] as A_TypeId + /// -- , c.[WFCON_IsArchival] + /// -- , c.[WFCON_IsTechnical] + /// , c.[WFCON_ChoiceFieldType] + /// , c.[WFCON_Prompt] as A_Title + /// , d.Name as A_Type + /// , d.ObjectName + ///-- , d.EnglishName + ///FROM [BPS_Content].[dbo].[WFConfigurations] c + /// INNER JOIN + /// (SELECT + /// [TypeID] + /// , [Name] + /// , [ObjectName] + /// [rest of string was truncated]";. + /// + public static string AllAttritubes { + get { + return ResourceManager.GetString("AllAttritubes", resourceCulture); + } + } + } +} diff --git a/WebconWrapper.ConfigServices/ConfigServices.resx b/WebconWrapper.ConfigServices/ConfigServices.resx new file mode 100644 index 0000000..01104fe --- /dev/null +++ b/WebconWrapper.ConfigServices/ConfigServices.resx @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + sql\n_fieldnameswithtypes.sql;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;windows-1250 + + \ No newline at end of file diff --git a/WebconWrapper.ConfigServices/Configuration.cs b/WebconWrapper.ConfigServices/Configuration.cs new file mode 100644 index 0000000..f7955cb --- /dev/null +++ b/WebconWrapper.ConfigServices/Configuration.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace WebconWrapper.ConfigServices +{ + public class Configuration + { + private static Configuration _instance; + public static Configuration Instance + { + get + { + if (_instance == null) + _instance = new Configuration(); + return _instance; + } + } + + public string AllAttributesQuery => ConfigServices.AllAttritubes; + } +} diff --git a/WebconWrapper.ConfigServices/DAL/AttributesRepo.cs b/WebconWrapper.ConfigServices/DAL/AttributesRepo.cs new file mode 100644 index 0000000..e301ba2 --- /dev/null +++ b/WebconWrapper.ConfigServices/DAL/AttributesRepo.cs @@ -0,0 +1,61 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using WebconWrapper.ConfigServices.Model; + +namespace WebconWrapper.ConfigServices.DAL +{ + public class AttributesRepo + { + private readonly string _connectionString; + + public AttributesRepo(string connectionString) + { + _connectionString = connectionString; + } + + public ICollection GetAll() + { + var data = GetAttributesData(); + ICollection attributesInfo = MapToAttributesInfo(data); + return attributesInfo; + } + + private static ICollection MapToAttributesInfo(DataTable data) + { + return data.Rows.Cast().Select(row => + new WebconAttribute() + { + Id = row.Field("A_Id"), + WFName = row.Field("WF_Name"), + DEFID = row.Field("DEFID"), + Title = row.Field("A_Title"), + Type = row.Field("A_Type"), + TypeId = row.Field("A_TypeId") + }).ToList(); + } + + private DataTable GetAttributesData() + { + using (var conn = CreateConnection()) + using (var cmd = new SqlCommand(Configuration.Instance.AllAttributesQuery, conn)) + using (var da = new SqlDataAdapter(cmd)) + { + var dt = new DataTable(); + da.Fill(dt); + return dt; + } + } + + private SqlConnection CreateConnection() + { + var conn = new SqlConnection(_connectionString); + conn.Open(); + return conn; + } + } +} diff --git a/WebconWrapper.ConfigServices/Model/WebconAttribute.cs b/WebconWrapper.ConfigServices/Model/WebconAttribute.cs new file mode 100644 index 0000000..fcdcc2c --- /dev/null +++ b/WebconWrapper.ConfigServices/Model/WebconAttribute.cs @@ -0,0 +1,12 @@ +namespace WebconWrapper.ConfigServices.Model +{ + public class WebconAttribute + { + public long Id { get; set; } + public string WFName { get; set; } + public long DEFID { get; set; } + public string Title { get; set; } + public string Type { get; set; } + public long TypeId { get; set; } + } +} \ No newline at end of file diff --git a/WebconWrapper.ConfigServices/Properties/AssemblyInfo.cs b/WebconWrapper.ConfigServices/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..d033e43 --- /dev/null +++ b/WebconWrapper.ConfigServices/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("WebconWrapper.ConfigServices")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("WebconWrapper.ConfigServices")] +[assembly: AssemblyCopyright("Copyright © 2018")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("819632a0-f75b-40b4-880f-6e8e1b18a1a9")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/WebconWrapper.ConfigServices/WebconWrapper.ConfigServices.csproj b/WebconWrapper.ConfigServices/WebconWrapper.ConfigServices.csproj new file mode 100644 index 0000000..40a73dd --- /dev/null +++ b/WebconWrapper.ConfigServices/WebconWrapper.ConfigServices.csproj @@ -0,0 +1,71 @@ + + + + + Debug + AnyCPU + {819632A0-F75B-40B4-880F-6E8E1B18A1A9} + Library + Properties + WebconWrapper.ConfigServices + WebconWrapper.ConfigServices + v4.5 + 512 + true + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + True + True + ConfigServices.resx + + + + + + + + + + + + + + + + + PublicResXFileCodeGenerator + ConfigServices.Designer.cs + + + + \ No newline at end of file diff --git a/WebconWrapper.ConfigServices/sql/dic_fieldtypes.sql b/WebconWrapper.ConfigServices/sql/dic_fieldtypes.sql new file mode 100644 index 0000000..c9bb9cf --- /dev/null +++ b/WebconWrapper.ConfigServices/sql/dic_fieldtypes.sql @@ -0,0 +1,9 @@ +SELECT TOP (1000) [TypeID] + ,[TSInsert] + ,[TSUpdate] + ,[RowVersion] + ,[Name] + ,[ObjectName] + ,[Description] + ,[EnglishName] + FROM [BPS_Content].[dbo].[DicFieldDetailTypes] \ No newline at end of file diff --git a/WebconWrapper.ConfigServices/sql/fieldnames.sql b/WebconWrapper.ConfigServices/sql/fieldnames.sql new file mode 100644 index 0000000..a9ccb02 --- /dev/null +++ b/WebconWrapper.ConfigServices/sql/fieldnames.sql @@ -0,0 +1,9 @@ +SELECT TOP (1000) [WFCON_ID] + ,[WFCON_FDEFID] + ,[WFCON_DEFID] + ,[WFCON_FieldTypeID] + ,[WFCON_IsArchival] + ,[WFCON_IsTechnical] + ,[WFCON_ChoiceFieldType] + ,[WFCON_Prompt] + FROM [BPS_Content].[dbo].[WFConfigurations] \ No newline at end of file diff --git a/WebconWrapper.ConfigServices/sql/fieldtypes.sql b/WebconWrapper.ConfigServices/sql/fieldtypes.sql new file mode 100644 index 0000000..388c97e --- /dev/null +++ b/WebconWrapper.ConfigServices/sql/fieldtypes.sql @@ -0,0 +1,10 @@ +SELECT TOP (1000) [FDEF_ID] + ,[FDEF_WFFieldTypeID] + ,[FDEF_TSInsert] + ,[FDEF_TSUpdate] + ,[FDEF_RowVersion] + ,[FDEF_IsDeleted] + ,[FDEF_Name] + ,[FDEF_Description] + ,[FDEF_Guid] + FROM [BPS_Content].[dbo].[WFFieldDefinitions] \ No newline at end of file diff --git a/WebconWrapper.ConfigServices/sql/n_fieldNamesWithTypes.sql b/WebconWrapper.ConfigServices/sql/n_fieldNamesWithTypes.sql new file mode 100644 index 0000000..bf0e502 --- /dev/null +++ b/WebconWrapper.ConfigServices/sql/n_fieldNamesWithTypes.sql @@ -0,0 +1,34 @@ +SELECT + wf.WF_Name as WF_Name, + c.[WFCON_ID] as A_Id + , c.[WFCON_FDEFID] + , c.[WFCON_DEFID] as DEFID + , c.[WFCON_FieldTypeID] as A_TypeId + -- , c.[WFCON_IsArchival] + -- , c.[WFCON_IsTechnical] + , c.[WFCON_ChoiceFieldType] + , c.[WFCON_Prompt] as A_Title + , d.Name as A_Type + , d.ObjectName +-- , d.EnglishName +FROM [BPS_Content].[dbo].[WFConfigurations] c + INNER JOIN + (SELECT + [TypeID] + , [Name] + , [ObjectName] + , [Description] + , [EnglishName] + FROM [BPS_Content].[dbo].[DicFieldDetailTypes]) +d + ON d.TypeID = c.WFCON_FieldTypeID + LEFT JOIN + (SELECT + -- [WF_ID], + [WF_WFDEFID], + [WF_Name] + FROM [BPS_Content].[dbo].[WorkFlows]) +wf + ON wf.WF_WFDEFID = c.WFCON_DEFID +where c.WFCON_IsDeleted = 0 +order by WF_Name \ No newline at end of file diff --git a/WebconWrapper.ConfigServices/sql/paths.sql b/WebconWrapper.ConfigServices/sql/paths.sql new file mode 100644 index 0000000..0dc1f43 --- /dev/null +++ b/WebconWrapper.ConfigServices/sql/paths.sql @@ -0,0 +1,65 @@ +SELECT TOP (1000) [PATH_ID] + ,[PATH_STPID] + ,[PATH_NextSTPID] + ,[PATH_FinishOtherTaskTypeID] + ,[PATH_IsDynamicAssign] + ,[PATH_AssignCONFID] + ,[PATH_IsDynamicAssignDW] + ,[PATH_AssignDWCONFID] + ,[PATH_SendStandardEmails] + ,[PATH_SendStandardEmailsDW] + ,[PATH_IsBackAction] + ,[PATH_ControlType] + ,[PATH_AssigType] + ,[PATH_CausesValidation] + ,[PATH_TSInsert] + ,[PATH_TSUpdate] + ,[PATH_RowVersion] + ,[PATH_IsDeleted] + ,[PATH_Order] + ,[PATH_ShowConfirm] + ,[PATH_StayInEditForm] + ,[PATH_MarkCurrentStepAsCompleted] + ,[PATH_CreateDWInformationTask] + ,[PATH_DesignerData] + ,[PATH_IsDefault] + ,[PATH_ShowInDiagram] + ,[PATH_IsEnableOnSmartPhone] + ,[PATH_MinFinishedTasksModeId] + ,[PATH_MinFinishedTasks] + ,[PATH_MinFinishedTasksPercent] + ,[PATH_ApprovalCommandID] + ,[PATH_IsMailApprovalEnabled] + ,[PATH_ControlTypeDW] + ,[PATH_AllowCover] + ,[PATH_CommentRequired] + ,[PATH_PredefinedAsgnEnabled] + ,[PATH_ConstAsgnEnabled] + ,[PATH_PredefinedAsgnEnabledDW] + ,[PATH_ConstAsgnEnabledDW] + ,[PATH_PredefinedAsgnCovers] + ,[PATH_ConstAsgnCovers] + ,[PATH_PredefinedAsgnCoversDW] + ,[PATH_ConstAsgnCoversDW] + ,[PATH_AllowCoverDW] + ,[PATH_TemplateID] + ,[PATH_LineNumber] + ,[PATH_IsVisibleBRDID] + ,[PATH_Name] + ,[PATH_Description] + ,[PATH_SubmitJScript] + ,[PATH_AssignColName] + ,[PATH_Assigments] + ,[PATH_AssignDWColName] + ,[PATH_AssigmentsDW] + ,[PATH_RestrictedToUsers] + ,[PATH_TaskName] + ,[PATH_TaskDescription] + ,[PATH_Guid] + ,[PATH_ButtonStyle] + ,[PATH_DocumentationDescription] + ,[PATH_OnSubmitUxBRDID] + FROM [BPS_Content].[dbo].[WFAvaiblePaths] + + select PATH_Name, PATH_IsDefault, PATH_ID, PATH_STPID,PATH_NextSTPId + from WFAvaiblePaths \ No newline at end of file diff --git a/WebconWrapper.ConfigServices/sql/steps.sql b/WebconWrapper.ConfigServices/sql/steps.sql new file mode 100644 index 0000000..7de7bd3 --- /dev/null +++ b/WebconWrapper.ConfigServices/sql/steps.sql @@ -0,0 +1,6 @@ +SELECT TOP (1000) [FLD_ID] + ,[FLD_FRMID] + ,[FLD_WFCON] + ,[FLD_IsRequired] + + FROM [BPS_Content].[dbo].[WFStepFormFields] \ No newline at end of file diff --git a/WebconWrapper.ConfigServices/sql/workflows.sql b/WebconWrapper.ConfigServices/sql/workflows.sql new file mode 100644 index 0000000..9280d93 --- /dev/null +++ b/WebconWrapper.ConfigServices/sql/workflows.sql @@ -0,0 +1,4 @@ +SELECT TOP (1000) [WF_ID] + ,[WF_WFDEFID] + ,[WF_Name] + FROM [BPS_Content].[dbo].[WorkFlows] \ No newline at end of file diff --git a/WebconWrapper.IntegrationTests/WebconWrapper.IntegrationTests.csproj b/WebconWrapper.IntegrationTests/WebconWrapper.IntegrationTests.csproj index 0b25832..f34db81 100644 --- a/WebconWrapper.IntegrationTests/WebconWrapper.IntegrationTests.csproj +++ b/WebconWrapper.IntegrationTests/WebconWrapper.IntegrationTests.csproj @@ -1,8 +1,8 @@  - + + - Debug @@ -36,13 +36,13 @@ - ..\packages\Castle.Core.4.3.0\lib\net45\Castle.Core.dll + ..\packages\Castle.Core.4.3.1\lib\net45\Castle.Core.dll ..\packages\FluentAssertions.5.4.1\lib\net45\FluentAssertions.dll - - ..\packages\Moq.4.8.3\lib\net45\Moq.dll + + ..\packages\Moq.4.10.0\lib\net45\Moq.dll @@ -69,16 +69,17 @@ - ..\packages\xunit.abstractions.2.0.1\lib\net35\xunit.abstractions.dll + ..\packages\xunit.abstractions.2.0.2\lib\net35\xunit.abstractions.dll + True - - ..\packages\xunit.assert.2.3.1\lib\netstandard1.1\xunit.assert.dll + + ..\packages\xunit.assert.2.4.0\lib\netstandard2.0\xunit.assert.dll - - ..\packages\xunit.extensibility.core.2.3.1\lib\netstandard1.1\xunit.core.dll + + ..\packages\xunit.extensibility.core.2.4.0\lib\net452\xunit.core.dll - - ..\packages\xunit.extensibility.execution.2.3.1\lib\net452\xunit.execution.desktop.dll + + ..\packages\xunit.extensibility.execution.2.4.0\lib\net452\xunit.execution.desktop.dll @@ -90,26 +91,26 @@ - - - {d5907367-4aac-4518-adbf-bd0f109a742d} WebconWrapper + + + 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/WebconWrapper.IntegrationTests/packages.config b/WebconWrapper.IntegrationTests/packages.config index 308c4b4..b73b566 100644 --- a/WebconWrapper.IntegrationTests/packages.config +++ b/WebconWrapper.IntegrationTests/packages.config @@ -1,21 +1,21 @@  - + - - + + - - - - - - - + + + + + + + - + \ No newline at end of file diff --git a/WebconWrapper.Tests/WebconWrapper.Tests.csproj b/WebconWrapper.Tests/WebconWrapper.Tests.csproj index 5e7c3b9..5d8050b 100644 --- a/WebconWrapper.Tests/WebconWrapper.Tests.csproj +++ b/WebconWrapper.Tests/WebconWrapper.Tests.csproj @@ -1,8 +1,8 @@  - + + - Debug @@ -36,13 +36,13 @@ - ..\packages\Castle.Core.4.3.0\lib\net45\Castle.Core.dll + ..\packages\Castle.Core.4.3.1\lib\net45\Castle.Core.dll ..\packages\FluentAssertions.5.4.1\lib\net45\FluentAssertions.dll - - ..\packages\Moq.4.8.3\lib\net45\Moq.dll + + ..\packages\Moq.4.10.0\lib\net45\Moq.dll @@ -62,16 +62,17 @@ - ..\packages\xunit.abstractions.2.0.1\lib\net35\xunit.abstractions.dll + ..\packages\xunit.abstractions.2.0.2\lib\net35\xunit.abstractions.dll + True - - ..\packages\xunit.assert.2.3.1\lib\netstandard1.1\xunit.assert.dll + + ..\packages\xunit.assert.2.4.0\lib\netstandard2.0\xunit.assert.dll - - ..\packages\xunit.extensibility.core.2.3.1\lib\netstandard1.1\xunit.core.dll + + ..\packages\xunit.extensibility.core.2.4.0\lib\net452\xunit.core.dll - - ..\packages\xunit.extensibility.execution.2.3.1\lib\net452\xunit.execution.desktop.dll + + ..\packages\xunit.extensibility.execution.2.4.0\lib\net452\xunit.execution.desktop.dll @@ -82,24 +83,24 @@ - - - {d5907367-4aac-4518-adbf-bd0f109a742d} WebconWrapper + + + 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/WebconWrapper.Tests/packages.config b/WebconWrapper.Tests/packages.config index 4396b3e..c57119c 100644 --- a/WebconWrapper.Tests/packages.config +++ b/WebconWrapper.Tests/packages.config @@ -1,17 +1,17 @@  - + - + - - - - - - - + + + + + + + - + \ No newline at end of file diff --git a/WebconWrapper.sln b/WebconWrapper.sln index 868fa9b..be3001f 100644 --- a/WebconWrapper.sln +++ b/WebconWrapper.sln @@ -9,6 +9,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebconWrapper.Tests", "Webc EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebconWrapper.IntegrationTests", "WebconWrapper.IntegrationTests\WebconWrapper.IntegrationTests.csproj", "{D92D2FB7-C58E-4783-8CE6-D4F1F4FC8572}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebconWrapper.ConfigServices", "WebconWrapper.ConfigServices\WebconWrapper.ConfigServices.csproj", "{819632A0-F75B-40B4-880F-6E8E1B18A1A9}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebconWrapper.ConfigServices.IntegrationTests", "WebconWrapper.ConfigServices.IntegrationTests\WebconWrapper.ConfigServices.IntegrationTests.csproj", "{2E3DF5C2-8A38-4A03-86D7-8D463C917E47}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -27,6 +31,14 @@ Global {D92D2FB7-C58E-4783-8CE6-D4F1F4FC8572}.Debug|Any CPU.Build.0 = Debug|Any CPU {D92D2FB7-C58E-4783-8CE6-D4F1F4FC8572}.Release|Any CPU.ActiveCfg = Release|Any CPU {D92D2FB7-C58E-4783-8CE6-D4F1F4FC8572}.Release|Any CPU.Build.0 = Release|Any CPU + {819632A0-F75B-40B4-880F-6E8E1B18A1A9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {819632A0-F75B-40B4-880F-6E8E1B18A1A9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {819632A0-F75B-40B4-880F-6E8E1B18A1A9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {819632A0-F75B-40B4-880F-6E8E1B18A1A9}.Release|Any CPU.Build.0 = Release|Any CPU + {2E3DF5C2-8A38-4A03-86D7-8D463C917E47}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2E3DF5C2-8A38-4A03-86D7-8D463C917E47}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2E3DF5C2-8A38-4A03-86D7-8D463C917E47}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2E3DF5C2-8A38-4A03-86D7-8D463C917E47}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/WebconWrapper/UserForm.cs b/WebconWrapper/UserForm.cs index be0eeb9..3002b21 100644 --- a/WebconWrapper/UserForm.cs +++ b/WebconWrapper/UserForm.cs @@ -10,11 +10,6 @@ public class UserForm : Element public int xd = 5; - public SetUpAttributes() - { - Text(5); - } - private void Text(int id) => Attributes.Add(new TextAttribute() { Id = id }); @@ -22,7 +17,6 @@ private void Text(int id) public void Send() { - return this.SetValue() } } }