diff --git a/AzureDevopsTracker/AzureDevopsTracker.sln b/AzureDevopsTracker.sln similarity index 63% rename from AzureDevopsTracker/AzureDevopsTracker.sln rename to AzureDevopsTracker.sln index 5610a58..b715220 100644 --- a/AzureDevopsTracker/AzureDevopsTracker.sln +++ b/AzureDevopsTracker.sln @@ -1,9 +1,9 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.31402.337 +# Visual Studio Version 17 +VisualStudioVersion = 17.2.32616.157 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AzureDevopsTracker", "AzureDevopsTracker.csproj", "{26FE19B9-7CD6-4418-9112-2E3C363985BF}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AzureDevopsTracker", "src\AzureDevopsTracker.csproj", "{36601E24-C989-4E11-BD8F-572F2F181ED1}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -11,10 +11,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {26FE19B9-7CD6-4418-9112-2E3C363985BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {26FE19B9-7CD6-4418-9112-2E3C363985BF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {26FE19B9-7CD6-4418-9112-2E3C363985BF}.Release|Any CPU.ActiveCfg = Release|Any CPU - {26FE19B9-7CD6-4418-9112-2E3C363985BF}.Release|Any CPU.Build.0 = Release|Any CPU + {36601E24-C989-4E11-BD8F-572F2F181ED1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {36601E24-C989-4E11-BD8F-572F2F181ED1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {36601E24-C989-4E11-BD8F-572F2F181ED1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {36601E24-C989-4E11-BD8F-572F2F181ED1}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/AzureDevopsTracker/DTOs/WorkItemDTO.cs b/AzureDevopsTracker/DTOs/WorkItemDTO.cs deleted file mode 100644 index e79e1fd..0000000 --- a/AzureDevopsTracker/DTOs/WorkItemDTO.cs +++ /dev/null @@ -1,100 +0,0 @@ -using Newtonsoft.Json; -using System; -using System.Collections.Generic; - -namespace AzureDevopsTracker.DTOs -{ - public class WorkItemDTO - { - [JsonProperty("id")] - public string Id { get; set; } - - [JsonProperty("created_at")] - public DateTime CreatedAt { get; set; } - - [JsonProperty("assigned_to")] - public string AssignedTo { get; set; } - - [JsonProperty("type")] - public string Type { get; set; } - - [JsonProperty("effort")] - public string Effort { get; set; } - - [JsonProperty("story_points")] - public string StoryPoints { get; set; } - - [JsonProperty("original_estimate")] - public string OriginalEstimate { get; set; } - - [JsonProperty("created_by")] - public string CreatedBy { get; set; } - - [JsonProperty("title")] - public string Title { get; set; } - - [JsonProperty("team_project")] - public string TeamProject { get; set; } - - [JsonProperty("iteration_path")] - public string IterationPath { get; set; } - - [JsonProperty("area_path")] - public string AreaPath { get; set; } - - [JsonProperty("current_status")] - public string CurrentStatus { get; set; } - - [JsonProperty("work_item_parent_id")] - public string WorkItemParentId { get; set; } - - [JsonProperty("activity")] - public string Activity { get; set; } - - [JsonProperty("tags")] - public IEnumerable Tags { get; set; } - - [JsonProperty("workItems_changes")] - public List WorkItemsChangesDTO { get; set; } - - [JsonProperty("times_by_state")] - public List TimesByStateDTO { get; set; } - } - - public class WorkItemChangeDTO - { - [JsonProperty("new_date")] - public DateTime NewDate { get; set; } - - [JsonProperty("new_state")] - public string NewState { get; set; } - - [JsonProperty("old_state")] - public string OldState { get; set; } - - [JsonProperty("old_date")] - public DateTime? OldDate { get; set; } - - [JsonProperty("changed_by")] - public string ChangedBy { get; set; } - } - - - public class TimeByStateDTO - { - [JsonProperty("created_at")] - public DateTime CreatedAt { get; set; } - - [JsonProperty("updated_at")] - public DateTime UpdatedAt { get; set; } - - [JsonProperty("state")] - public string State { get; set; } - - [JsonProperty("total_time")] - public string TotalTime { get; set; } - - [JsonProperty("total_worked_time")] - public string TotalWorkedTime { get; set; } - } -} diff --git a/AzureDevopsTracker/Helpers/MarkdownHelper.cs b/AzureDevopsTracker/Helpers/MarkdownHelper.cs deleted file mode 100644 index f2b062e..0000000 --- a/AzureDevopsTracker/Helpers/MarkdownHelper.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace AzureDevopsTracker.Helpers -{ - internal static class MarkdownHelper - { - } -} diff --git a/AzureDevopsTracker/Helpers/MicrosoftTeamsHelper.cs b/AzureDevopsTracker/Helpers/MicrosoftTeamsHelper.cs deleted file mode 100644 index e4e7e4c..0000000 --- a/AzureDevopsTracker/Helpers/MicrosoftTeamsHelper.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace AzureDevopsTracker.Helpers -{ - internal static class MicrosoftTeamsHelper - { - } -} diff --git a/AzureDevopsTracker/Integrations/MessageBaseIntegration.cs b/AzureDevopsTracker/Integrations/MessageBaseIntegration.cs deleted file mode 100644 index 6390c21..0000000 --- a/AzureDevopsTracker/Integrations/MessageBaseIntegration.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace AzureDevopsTracker.Integrations -{ - internal abstract class MessageBaseIntegration - { - - } -} diff --git a/AzureDevopsTracker/LICENSE.md.txt b/LICENSE.md.txt similarity index 100% rename from AzureDevopsTracker/LICENSE.md.txt rename to LICENSE.md.txt diff --git a/AzureDevopsTracker/Adapters/WorkItemAdapter.cs b/src/Adapters/WorkItemAdapter.cs similarity index 100% rename from AzureDevopsTracker/Adapters/WorkItemAdapter.cs rename to src/Adapters/WorkItemAdapter.cs diff --git a/AzureDevopsTracker/AzureDevopsTracker.csproj b/src/AzureDevopsTracker.csproj similarity index 100% rename from AzureDevopsTracker/AzureDevopsTracker.csproj rename to src/AzureDevopsTracker.csproj diff --git a/AzureDevopsTracker/Configurations/Configuration.cs b/src/Configurations/Configuration.cs similarity index 100% rename from AzureDevopsTracker/Configurations/Configuration.cs rename to src/Configurations/Configuration.cs diff --git a/AzureDevopsTracker/DTOs/Create/CreateWorkItemDTO.cs b/src/DTOs/Create/CreateWorkItemDTO.cs similarity index 69% rename from AzureDevopsTracker/DTOs/Create/CreateWorkItemDTO.cs rename to src/DTOs/Create/CreateWorkItemDTO.cs index e19f527..26e6126 100644 --- a/AzureDevopsTracker/DTOs/Create/CreateWorkItemDTO.cs +++ b/src/DTOs/Create/CreateWorkItemDTO.cs @@ -3,10 +3,10 @@ namespace AzureDevopsTracker.DTOs.Create { - public class CreateWorkItemDTO + public record CreateWorkItemDTO { [JsonPropertyName("resource")] [JsonProperty("resource")] - public Resource Resource { get; set; } + public Resource Resource { get; init; } } } \ No newline at end of file diff --git a/AzureDevopsTracker/DTOs/Delete/DeleteWorkItemDTO.cs b/src/DTOs/Delete/DeleteWorkItemDTO.cs similarity index 70% rename from AzureDevopsTracker/DTOs/Delete/DeleteWorkItemDTO.cs rename to src/DTOs/Delete/DeleteWorkItemDTO.cs index 6b2e982..53d8d27 100644 --- a/AzureDevopsTracker/DTOs/Delete/DeleteWorkItemDTO.cs +++ b/src/DTOs/Delete/DeleteWorkItemDTO.cs @@ -3,10 +3,10 @@ namespace AzureDevopsTracker.DTOs.Delete { - public class DeleteWorkItemDTO + public record DeleteWorkItemDTO { [JsonPropertyName("resource")] [JsonProperty("resource")] - public Resource Resource { get; set; } + public Resource Resource { get; init; } } } diff --git a/AzureDevopsTracker/DTOs/Fields.cs b/src/DTOs/Fields.cs similarity index 68% rename from AzureDevopsTracker/DTOs/Fields.cs rename to src/DTOs/Fields.cs index aef4bd1..5b37626 100644 --- a/AzureDevopsTracker/DTOs/Fields.cs +++ b/src/DTOs/Fields.cs @@ -4,77 +4,77 @@ namespace AzureDevopsTracker.DTOs { - public class Fields + public record Fields { [JsonPropertyName("System.AreaPath")] [JsonProperty("System.AreaPath")] - public string AreaPath { get; set; } + public string AreaPath { get; init; } [JsonPropertyName("System.TeamProject")] [JsonProperty("System.TeamProject")] - public string TeamProject { get; set; } + public string TeamProject { get; init; } [JsonPropertyName("System.IterationPath")] [JsonProperty("System.IterationPath")] - public string IterationPath { get; set; } + public string IterationPath { get; init; } [JsonPropertyName("System.AssignedTo")] [JsonProperty("System.AssignedTo")] - public string AssignedTo { get; set; } + public string AssignedTo { get; init; } [JsonPropertyName("System.WorkItemType")] [JsonProperty("System.WorkItemType")] - public string Type { get; set; } + public string Type { get; init; } [JsonPropertyName("System.CreatedDate")] [JsonProperty("System.CreatedDate")] - public DateTime CreatedDate { get; set; } + public DateTime CreatedDate { get; init; } [JsonPropertyName("System.CreatedBy")] [JsonProperty("System.CreatedBy")] - public string CreatedBy { get; set; } + public string CreatedBy { get; init; } [JsonPropertyName("System.ChangedBy")] [JsonProperty("System.ChangedBy")] - public string ChangedBy { get; set; } + public string ChangedBy { get; init; } [JsonPropertyName("System.State")] [JsonProperty("System.State")] - public string State { get; set; } + public string State { get; init; } [JsonPropertyName("System.Title")] [JsonProperty("System.Title")] - public string Title { get; set; } + public string Title { get; init; } [JsonPropertyName("System.Tags")] [JsonProperty("System.Tags")] - public string Tags { get; set; } + public string Tags { get; init; } [JsonPropertyName("System.Parent")] [JsonProperty("System.Parent")] - public string Parent { get; set; } + public string Parent { get; init; } [JsonPropertyName("Microsoft.VSTS.Scheduling.StoryPoints")] [JsonProperty("Microsoft.VSTS.Scheduling.StoryPoints")] - public string StoryPoints { get; set; } + public string StoryPoints { get; init; } [JsonPropertyName("Microsoft.VSTS.Scheduling.OriginalEstimate")] [JsonProperty("Microsoft.VSTS.Scheduling.OriginalEstimate")] - public string OriginalEstimate { get; set; } + public string OriginalEstimate { get; init; } [JsonPropertyName("Microsoft.VSTS.Scheduling.RemainingWork")] [JsonProperty("Microsoft.VSTS.Scheduling.RemainingWork")] - public string RemainingWork { get; set; } + public string RemainingWork { get; init; } [JsonPropertyName("Microsoft.VSTS.Scheduling.Effort")] [JsonProperty("Microsoft.VSTS.Scheduling.Effort")] - public string Effort { get; set; } + public string Effort { get; init; } [JsonPropertyName("Microsoft.VSTS.Common.Activity")] [JsonProperty("Microsoft.VSTS.Common.Activity")] - public string Activity { get; set; } + public string Activity { get; init; } [JsonProperty("Custom.ChangeLogDescription")] - public string ChangeLogDescription { get; set; } + public string ChangeLogDescription { get; init; } } } \ No newline at end of file diff --git a/AzureDevopsTracker/DTOs/Resource.cs b/src/DTOs/Resource.cs similarity index 69% rename from AzureDevopsTracker/DTOs/Resource.cs rename to src/DTOs/Resource.cs index 7127dd6..45cf0a3 100644 --- a/AzureDevopsTracker/DTOs/Resource.cs +++ b/src/DTOs/Resource.cs @@ -3,14 +3,14 @@ namespace AzureDevopsTracker.DTOs { - public class Resource + public record Resource { [JsonPropertyName("id")] [JsonProperty("id")] - public string Id { get; set; } + public string Id { get; init; } [JsonPropertyName("fields")] [JsonProperty("fields")] - public Fields Fields { get; set; } + public Fields Fields { get; init; } } } diff --git a/AzureDevopsTracker/DTOs/Restore/RestoreWorkItemDTO.cs b/src/DTOs/Restore/RestoreWorkItemDTO.cs similarity index 69% rename from AzureDevopsTracker/DTOs/Restore/RestoreWorkItemDTO.cs rename to src/DTOs/Restore/RestoreWorkItemDTO.cs index c5d2890..0aead27 100644 --- a/AzureDevopsTracker/DTOs/Restore/RestoreWorkItemDTO.cs +++ b/src/DTOs/Restore/RestoreWorkItemDTO.cs @@ -3,10 +3,10 @@ namespace AzureDevopsTracker.DTOs.Restore { - public class RestoreWorkItemDTO + public record RestoreWorkItemDTO { [JsonPropertyName("resource")] [JsonProperty("resource")] - public Resource Resource { get; set; } + public Resource Resource { get; init; } } } diff --git a/AzureDevopsTracker/DTOs/Update/UpdateWorkItemDTO.cs b/src/DTOs/Update/UpdateWorkItemDTO.cs similarity index 59% rename from AzureDevopsTracker/DTOs/Update/UpdateWorkItemDTO.cs rename to src/DTOs/Update/UpdateWorkItemDTO.cs index 8907979..714131d 100644 --- a/AzureDevopsTracker/DTOs/Update/UpdateWorkItemDTO.cs +++ b/src/DTOs/Update/UpdateWorkItemDTO.cs @@ -4,70 +4,70 @@ namespace AzureDevopsTracker.DTOs.Update { - public class UpdatedWorkItemDTO + public record UpdatedWorkItemDTO { [JsonPropertyName("resource")] [JsonProperty("resource")] - public Resource Resource { get; set; } + public Resource Resource { get; init; } } - public class Resource + public record Resource { [JsonPropertyName("workItemId")] [JsonProperty("workItemId")] - public string WorkItemId { get; set; } + public string WorkItemId { get; init; } [JsonPropertyName("fields")] [JsonProperty("fields")] - public ResourceFields Fields { get; set; } + public ResourceFields Fields { get; init; } [JsonPropertyName("revision")] [JsonProperty("revision")] - public Revision Revision { get; set; } + public Revision Revision { get; init; } } - public class Revision + public record Revision { [JsonPropertyName("fields")] [JsonProperty("fields")] - public Fields Fields { get; set; } + public Fields Fields { get; init; } } - public class ResourceFields + public record ResourceFields { [JsonPropertyName("System.State")] [JsonProperty("System.State")] - public OldNewValues State { get; set; } + public OldNewValues State { get; init; } [JsonPropertyName("Microsoft.VSTS.Common.StateChangeDate")] [JsonProperty("Microsoft.VSTS.Common.StateChangeDate")] - public DateTimeOldNewValues StateChangeDate { get; set; } + public DateTimeOldNewValues StateChangeDate { get; init; } [JsonPropertyName("System.ChangedBy")] [JsonProperty("System.ChangedBy")] - public OldNewValues ChangedBy { get; set; } + public OldNewValues ChangedBy { get; init; } } - public class OldNewValues + public record OldNewValues { [JsonPropertyName("oldValue")] [JsonProperty("oldValue")] - public string OldValue { get; set; } + public string OldValue { get; init; } [JsonPropertyName("newValue")] [JsonProperty("newValue")] - public string NewValue { get; set; } + public string NewValue { get; init; } } - public class DateTimeOldNewValues + public record DateTimeOldNewValues { [JsonPropertyName("oldValue")] [JsonProperty("oldValue")] - public DateTime OldValue { get; set; } + public DateTime OldValue { get; init; } [JsonPropertyName("newValue")] [JsonProperty("newValue")] - public DateTime NewValue { get; set; } + public DateTime NewValue { get; init; } } } \ No newline at end of file diff --git a/src/DTOs/WorkItemDTO.cs b/src/DTOs/WorkItemDTO.cs new file mode 100644 index 0000000..46ef511 --- /dev/null +++ b/src/DTOs/WorkItemDTO.cs @@ -0,0 +1,100 @@ +using Newtonsoft.Json; +using System; +using System.Collections.Generic; + +namespace AzureDevopsTracker.DTOs +{ + public record WorkItemDTO + { + [JsonProperty("id")] + public string Id { get; init; } + + [JsonProperty("created_at")] + public DateTime CreatedAt { get; init; } + + [JsonProperty("assigned_to")] + public string AssignedTo { get; init; } + + [JsonProperty("type")] + public string Type { get; init; } + + [JsonProperty("effort")] + public string Effort { get; init; } + + [JsonProperty("story_points")] + public string StoryPoints { get; init; } + + [JsonProperty("original_estimate")] + public string OriginalEstimate { get; init; } + + [JsonProperty("created_by")] + public string CreatedBy { get; init; } + + [JsonProperty("title")] + public string Title { get; init; } + + [JsonProperty("team_project")] + public string TeamProject { get; init; } + + [JsonProperty("iteration_path")] + public string IterationPath { get; init; } + + [JsonProperty("area_path")] + public string AreaPath { get; init; } + + [JsonProperty("current_status")] + public string CurrentStatus { get; init; } + + [JsonProperty("work_item_parent_id")] + public string WorkItemParentId { get; init; } + + [JsonProperty("activity")] + public string Activity { get; init; } + + [JsonProperty("tags")] + public IEnumerable Tags { get; init; } + + [JsonProperty("workItems_changes")] + public List WorkItemsChangesDTO { get; init; } + + [JsonProperty("times_by_state")] + public List TimesByStateDTO { get; init; } + } + + public record WorkItemChangeDTO + { + [JsonProperty("new_date")] + public DateTime NewDate { get; init; } + + [JsonProperty("new_state")] + public string NewState { get; init; } + + [JsonProperty("old_state")] + public string OldState { get; init; } + + [JsonProperty("old_date")] + public DateTime? OldDate { get; init; } + + [JsonProperty("changed_by")] + public string ChangedBy { get; init; } + } + + + public record TimeByStateDTO + { + [JsonProperty("created_at")] + public DateTime CreatedAt { get; init; } + + [JsonProperty("updated_at")] + public DateTime UpdatedAt { get; init; } + + [JsonProperty("state")] + public string State { get; init; } + + [JsonProperty("total_time")] + public string TotalTime { get; init; } + + [JsonProperty("total_worked_time")] + public string TotalWorkedTime { get; init; } + } +} diff --git a/AzureDevopsTracker/Data/ChangeLogItemRepository.cs b/src/Data/ChangeLogItemRepository.cs similarity index 100% rename from AzureDevopsTracker/Data/ChangeLogItemRepository.cs rename to src/Data/ChangeLogItemRepository.cs diff --git a/AzureDevopsTracker/Data/ChangeLogRepository.cs b/src/Data/ChangeLogRepository.cs similarity index 93% rename from AzureDevopsTracker/Data/ChangeLogRepository.cs rename to src/Data/ChangeLogRepository.cs index 7067039..503cbff 100644 --- a/AzureDevopsTracker/Data/ChangeLogRepository.cs +++ b/src/Data/ChangeLogRepository.cs @@ -2,7 +2,6 @@ using AzureDevopsTracker.Entities; using AzureDevopsTracker.Interfaces.Internals; using System; -using System.Collections.Generic; using System.Linq; namespace AzureDevopsTracker.Data diff --git a/AzureDevopsTracker/Data/Context/AzureDevopsTrackerContext.cs b/src/Data/Context/AzureDevopsTrackerContext.cs similarity index 100% rename from AzureDevopsTracker/Data/Context/AzureDevopsTrackerContext.cs rename to src/Data/Context/AzureDevopsTrackerContext.cs diff --git a/AzureDevopsTracker/Data/DataBaseConfig.cs b/src/Data/DataBaseConfig.cs similarity index 100% rename from AzureDevopsTracker/Data/DataBaseConfig.cs rename to src/Data/DataBaseConfig.cs diff --git a/AzureDevopsTracker/Data/Mapping/ChangeLogItemMapping.cs b/src/Data/Mapping/ChangeLogItemMapping.cs similarity index 100% rename from AzureDevopsTracker/Data/Mapping/ChangeLogItemMapping.cs rename to src/Data/Mapping/ChangeLogItemMapping.cs diff --git a/AzureDevopsTracker/Data/Mapping/ChangeLogMapping.cs b/src/Data/Mapping/ChangeLogMapping.cs similarity index 100% rename from AzureDevopsTracker/Data/Mapping/ChangeLogMapping.cs rename to src/Data/Mapping/ChangeLogMapping.cs diff --git a/AzureDevopsTracker/Data/Mapping/CustomFieldMapping.cs b/src/Data/Mapping/CustomFieldMapping.cs similarity index 100% rename from AzureDevopsTracker/Data/Mapping/CustomFieldMapping.cs rename to src/Data/Mapping/CustomFieldMapping.cs diff --git a/AzureDevopsTracker/Data/Repository.cs b/src/Data/Repository.cs similarity index 100% rename from AzureDevopsTracker/Data/Repository.cs rename to src/Data/Repository.cs diff --git a/AzureDevopsTracker/Data/WorkItemRepository.cs b/src/Data/WorkItemRepository.cs similarity index 100% rename from AzureDevopsTracker/Data/WorkItemRepository.cs rename to src/Data/WorkItemRepository.cs diff --git a/AzureDevopsTracker/Entities/ChangeLog.cs b/src/Entities/ChangeLog.cs similarity index 73% rename from AzureDevopsTracker/Entities/ChangeLog.cs rename to src/Entities/ChangeLog.cs index f8c2109..33cf708 100644 --- a/AzureDevopsTracker/Entities/ChangeLog.cs +++ b/src/Entities/ChangeLog.cs @@ -9,31 +9,23 @@ public class ChangeLog : Entity public string Response { get; private set; } public string Number { get; private set; } public int Revision { get; private set; } - - private readonly List _changeLogItems = new List(); + private readonly List _changeLogItems = new(); public IReadOnlyCollection ChangeLogItems => _changeLogItems; - private ChangeLog() { } + private ChangeLog() { } public ChangeLog(int newRevision) { Revision = newRevision; - Number = $"{ CreatedAt:yyyyMMdd}.{ Revision }"; + Number = $"{CreatedAt:yyyyMMdd}.{Revision}"; } - public ChangeLog(string number) - { - Number = number; - } + public ChangeLog(string number) => Number = number; - public void SetResponse(string response) - { - Response = response; - } + public void SetResponse(string response) => Response = response; - public void ClearResponse() - { - Response = string.Empty; - } + public void ClearResponse() => Response = string.Empty; + + private bool CheckChangeLogItem(ChangeLogItem changeLogItem) => _changeLogItems.Any(x => x.WorkItemId == changeLogItem.WorkItemId); public void AddChangeLogItem(ChangeLogItem changeLogItem) { @@ -57,10 +49,5 @@ public void AddChangeLogItems(IEnumerable changeLogItems) AddChangeLogItem(changeLogItem); } } - - private bool CheckChangeLogItem(ChangeLogItem changeLogItem) - { - return _changeLogItems.Any(x => x.WorkItemId == changeLogItem.WorkItemId); - } } } \ No newline at end of file diff --git a/AzureDevopsTracker/Entities/ChangeLogItem.cs b/src/Entities/ChangeLogItem.cs similarity index 76% rename from AzureDevopsTracker/Entities/ChangeLogItem.cs rename to src/Entities/ChangeLogItem.cs index 64ac837..b572ffd 100644 --- a/AzureDevopsTracker/Entities/ChangeLogItem.cs +++ b/src/Entities/ChangeLogItem.cs @@ -11,12 +11,13 @@ public class ChangeLogItem : Entity public string WorkItemType { get; private set; } public string ChangeLogId { get; private set; } public bool WasReleased => string.IsNullOrEmpty(ChangeLogId?.Trim()); - - /*EF*/ public ChangeLog ChangeLog { get; private set; } - private ChangeLogItem() { } - public ChangeLogItem(string workItemId, string title, string description, string workItemType) + private ChangeLogItem() { } + public ChangeLogItem(string workItemId, + string title, + string description, + string workItemType) { WorkItemId = workItemId; Title = title; @@ -26,18 +27,17 @@ public ChangeLogItem(string workItemId, string title, string description, string Validate(); } - public void Update(string title, string workItemType, string description) + public void Release(string changeLogId) => ChangeLogId = changeLogId; + + public void Update(string title, + string workItemType, + string description) { Title = title; WorkItemType = workItemType; Description = description; } - public void Release(string changeLogId) - { - ChangeLogId = changeLogId; - } - public void Validate() { if (WorkItemId.IsNullOrEmpty() || Convert.ToInt64(WorkItemId) <= 0) diff --git a/AzureDevopsTracker/Entities/Entity.cs b/src/Entities/Entity.cs similarity index 99% rename from AzureDevopsTracker/Entities/Entity.cs rename to src/Entities/Entity.cs index 46f0a70..1239024 100644 --- a/AzureDevopsTracker/Entities/Entity.cs +++ b/src/Entities/Entity.cs @@ -6,6 +6,7 @@ public abstract class Entity { public string Id { get; protected set; } public DateTime CreatedAt { get; private set; } + public Entity(string id) { Id = id ?? Guid.NewGuid().ToString(); diff --git a/AzureDevopsTracker/Entities/TimeByState.cs b/src/Entities/TimeByState.cs similarity index 83% rename from AzureDevopsTracker/Entities/TimeByState.cs rename to src/Entities/TimeByState.cs index febfbe5..fad334a 100644 --- a/AzureDevopsTracker/Entities/TimeByState.cs +++ b/src/Entities/TimeByState.cs @@ -9,12 +9,13 @@ public class TimeByState : Entity public string State { get; private set; } public double TotalTime { get; private set; } public double TotalWorkedTime { get; private set; } - public WorkItem WorkItem { get; private set; } private TimeByState() { } - - public TimeByState(string workItemId, string state, TimeSpan totalTime, TimeSpan totalWorkedTime) + public TimeByState(string workItemId, + string state, + TimeSpan totalTime, + TimeSpan totalWorkedTime) { WorkItemId = workItemId; State = state; diff --git a/AzureDevopsTracker/Entities/WorkItem.cs b/src/Entities/WorkItem.cs similarity index 94% rename from AzureDevopsTracker/Entities/WorkItem.cs rename to src/Entities/WorkItem.cs index cacdda3..03db258 100644 --- a/AzureDevopsTracker/Entities/WorkItem.cs +++ b/src/Entities/WorkItem.cs @@ -21,7 +21,6 @@ public class WorkItem : Entity public string WorkItemParentId { get; private set; } public string Activity { get; private set; } public bool Deleted { get; private set; } - public ChangeLogItem ChangeLogItem { get; private set; } private readonly List _workItemsChanges = new(); @@ -36,7 +35,6 @@ public class WorkItem : Entity public string LastStatus => _workItemsChanges?.OrderBy(x => x.CreatedAt)?.ToList()?.Skip(1)?.LastOrDefault()?.OldState; private WorkItem() { } - public WorkItem(string workItemId) : base(workItemId) { Validate(); @@ -68,15 +66,10 @@ public void Update(string title, Activity = activity; } - public void Restore() - { - Deleted = false; - } - - public void Delete() - { - Deleted = true; - } + public void Restore() => Deleted = false; + public void Delete() => Deleted = true; + public void ClearTimesByState() => _timeByState.Clear(); + public void RemoveChangeLogItem() => ChangeLogItem = null; public void Validate() { @@ -135,16 +128,6 @@ public void UpdateCustomFields(IEnumerable newCustomFields) AddCustomFields(newCustomFields); } - public void ClearTimesByState() - { - _timeByState.Clear(); - } - - public void RemoveChangeLogItem() - { - ChangeLogItem = null; - } - public void VinculateChangeLogItem(ChangeLogItem changeLogItem) { if (changeLogItem is null) diff --git a/AzureDevopsTracker/Entities/WorkItemChange.cs b/src/Entities/WorkItemChange.cs similarity index 91% rename from AzureDevopsTracker/Entities/WorkItemChange.cs rename to src/Entities/WorkItemChange.cs index 29a276e..a1f39fa 100644 --- a/AzureDevopsTracker/Entities/WorkItemChange.cs +++ b/src/Entities/WorkItemChange.cs @@ -13,12 +13,16 @@ public class WorkItemChange : Entity public string ChangedBy { get; private set; } public string IterationPath { get; private set; } public double TotalWorkedTime { get; private set; } - public WorkItem WorkItem { get; private set; } private WorkItemChange() { } - - public WorkItemChange(string workItemId, string changedBy, string iterationPath, DateTime newDate, string newState, string oldState, DateTime? oldDate) + public WorkItemChange(string workItemId, + string changedBy, + string iterationPath, + DateTime newDate, + string newState, + string oldState, + DateTime? oldDate) { WorkItemId = workItemId; NewDate = newDate; @@ -38,10 +42,7 @@ public void Validate() throw new Exception("WorkItemId is required"); } - public TimeSpan CalculateTotalTime() - { - return OldDate is null ? TimeSpan.Zero : NewDate.ToDateTimeFromTimeZoneInfo() - OldDate.Value.ToDateTimeFromTimeZoneInfo(); - } + public TimeSpan CalculateTotalTime() => OldDate is null ? TimeSpan.Zero : NewDate.ToDateTimeFromTimeZoneInfo() - OldDate.Value.ToDateTimeFromTimeZoneInfo(); public double CalculateTotalWorkedTime() { @@ -137,6 +138,7 @@ public double CalculateTotalWorkedTime() return secondsWorked; } + #region Private Methods private TimeSpan SubtractDates(DateTime biger, DateTime minor) { if (biger.Hour == minor.Hour) @@ -163,5 +165,6 @@ private TimeSpan SubtractDates(DateTime biger, DateTime minor) return biger.Subtract(minor); } } + #endregion } } \ No newline at end of file diff --git a/AzureDevopsTracker/Entities/WorkItemCustomField.cs b/src/Entities/WorkItemCustomField.cs similarity index 69% rename from AzureDevopsTracker/Entities/WorkItemCustomField.cs rename to src/Entities/WorkItemCustomField.cs index 919a695..2f9b36c 100644 --- a/AzureDevopsTracker/Entities/WorkItemCustomField.cs +++ b/src/Entities/WorkItemCustomField.cs @@ -1,5 +1,4 @@ using AzureDevopsTracker.Extensions; -using System; namespace AzureDevopsTracker.Entities { @@ -8,19 +7,17 @@ public class WorkItemCustomField public string WorkItemId { get; private set; } public string Key { get; private set; } public string Value { get; private set; } - public WorkItem WorkItem { get; private set; } - public WorkItemCustomField(string workItemId, string key, string value) + public WorkItemCustomField(string workItemId, + string key, + string value) { WorkItemId = workItemId; Key = key.Truncate(1000); Value = value.Truncate(); } - public void Update(string value) - { - Value = value; - } + public void Update(string value) => Value = value; } } \ No newline at end of file diff --git a/AzureDevopsTracker/Extensions/HelperExtenions.cs b/src/Extensions/HelperExtenions.cs similarity index 100% rename from AzureDevopsTracker/Extensions/HelperExtenions.cs rename to src/Extensions/HelperExtenions.cs diff --git a/src/Helpers/MarkdownHelper.cs b/src/Helpers/MarkdownHelper.cs new file mode 100644 index 0000000..cc6c352 --- /dev/null +++ b/src/Helpers/MarkdownHelper.cs @@ -0,0 +1,4 @@ +namespace AzureDevopsTracker.Helpers +{ + internal static class MarkdownHelper { } +} diff --git a/src/Helpers/MicrosoftTeamsHelper.cs b/src/Helpers/MicrosoftTeamsHelper.cs new file mode 100644 index 0000000..d98c620 --- /dev/null +++ b/src/Helpers/MicrosoftTeamsHelper.cs @@ -0,0 +1,4 @@ +namespace AzureDevopsTracker.Helpers +{ + internal static class MicrosoftTeamsHelper { } +} diff --git a/AzureDevopsTracker/Helpers/RawTextHelper.cs b/src/Helpers/RawTextHelper.cs similarity index 100% rename from AzureDevopsTracker/Helpers/RawTextHelper.cs rename to src/Helpers/RawTextHelper.cs diff --git a/AzureDevopsTracker/Helpers/ReadJsonHelper.cs b/src/Helpers/ReadJsonHelper.cs similarity index 100% rename from AzureDevopsTracker/Helpers/ReadJsonHelper.cs rename to src/Helpers/ReadJsonHelper.cs diff --git a/AzureDevopsTracker/Integrations/DiscordIntegration.cs b/src/Integrations/DiscordIntegration.cs similarity index 100% rename from AzureDevopsTracker/Integrations/DiscordIntegration.cs rename to src/Integrations/DiscordIntegration.cs diff --git a/AzureDevopsTracker/Integrations/FakeIntegration.cs b/src/Integrations/FakeIntegration.cs similarity index 64% rename from AzureDevopsTracker/Integrations/FakeIntegration.cs rename to src/Integrations/FakeIntegration.cs index 420fb38..f32fc57 100644 --- a/AzureDevopsTracker/Integrations/FakeIntegration.cs +++ b/src/Integrations/FakeIntegration.cs @@ -4,9 +4,6 @@ namespace AzureDevopsTracker.Integrations { internal class FakeIntegration : MessageIntegration { - internal override void Send(ChangeLog changeLog) - { - - } + internal override void Send(ChangeLog changeLog) { } } } diff --git a/src/Integrations/MessageBaseIntegration.cs b/src/Integrations/MessageBaseIntegration.cs new file mode 100644 index 0000000..ba71b58 --- /dev/null +++ b/src/Integrations/MessageBaseIntegration.cs @@ -0,0 +1,4 @@ +namespace AzureDevopsTracker.Integrations +{ + internal abstract class MessageBaseIntegration { } +} diff --git a/AzureDevopsTracker/Integrations/MessageConfig.cs b/src/Integrations/MessageConfig.cs similarity index 77% rename from AzureDevopsTracker/Integrations/MessageConfig.cs rename to src/Integrations/MessageConfig.cs index e484b9c..3a426ce 100644 --- a/AzureDevopsTracker/Integrations/MessageConfig.cs +++ b/src/Integrations/MessageConfig.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace AzureDevopsTracker.Integrations +namespace AzureDevopsTracker.Integrations { public class MessageConfig { diff --git a/AzureDevopsTracker/Integrations/MessageFacade.cs b/src/Integrations/MessageFacade.cs similarity index 100% rename from AzureDevopsTracker/Integrations/MessageFacade.cs rename to src/Integrations/MessageFacade.cs diff --git a/AzureDevopsTracker/Integrations/MessageIntegration.cs b/src/Integrations/MessageIntegration.cs similarity index 98% rename from AzureDevopsTracker/Integrations/MessageIntegration.cs rename to src/Integrations/MessageIntegration.cs index 56a954f..9bb9fa0 100644 --- a/AzureDevopsTracker/Integrations/MessageIntegration.cs +++ b/src/Integrations/MessageIntegration.cs @@ -42,7 +42,7 @@ protected internal string GetFileVersion() protected internal string GetNugetVersion() { - return $"Powered by **Typing Hard** • nuget version { GetFileVersion() }"; + return $"Powered by **Typing Hard** • nuget version {GetFileVersion()}"; } protected internal HttpResponseMessage Notify(object body) diff --git a/AzureDevopsTracker/Integrations/MicrosoftTeamsIntegration.cs b/src/Integrations/MicrosoftTeamsIntegration.cs similarity index 94% rename from AzureDevopsTracker/Integrations/MicrosoftTeamsIntegration.cs rename to src/Integrations/MicrosoftTeamsIntegration.cs index ff9fd42..1933002 100644 --- a/AzureDevopsTracker/Integrations/MicrosoftTeamsIntegration.cs +++ b/src/Integrations/MicrosoftTeamsIntegration.cs @@ -79,7 +79,7 @@ private string GetWorkItemsDescriptionSection(string sectionName, IEnumerable**{ workItem.WorkItemId }** - { description }
"; + return $"**{workItem.WorkItemId}** - {description}
"; } private string GetDescription(string description) @@ -100,7 +100,7 @@ private string GetDescription(string description) private string GetFooter() { - return $"
{ GetNugetVersion() }"; + return $"
{GetNugetVersion()}"; } } } diff --git a/AzureDevopsTracker/Interfaces/IAzureDevopsTrackerService.cs b/src/Interfaces/IAzureDevopsTrackerService.cs similarity index 100% rename from AzureDevopsTracker/Interfaces/IAzureDevopsTrackerService.cs rename to src/Interfaces/IAzureDevopsTrackerService.cs diff --git a/AzureDevopsTracker/Interfaces/IChangeLogService.cs b/src/Interfaces/IChangeLogService.cs similarity index 89% rename from AzureDevopsTracker/Interfaces/IChangeLogService.cs rename to src/Interfaces/IChangeLogService.cs index 6f21bf4..3c97c16 100644 --- a/AzureDevopsTracker/Interfaces/IChangeLogService.cs +++ b/src/Interfaces/IChangeLogService.cs @@ -1,5 +1,4 @@ using AzureDevopsTracker.Entities; -using System.Threading.Tasks; namespace AzureDevopsTracker.Interfaces { diff --git a/AzureDevopsTracker/Interfaces/IWorkItemAdapter.cs b/src/Interfaces/IWorkItemAdapter.cs similarity index 100% rename from AzureDevopsTracker/Interfaces/IWorkItemAdapter.cs rename to src/Interfaces/IWorkItemAdapter.cs diff --git a/AzureDevopsTracker/Interfaces/Internals/IChangeLogItemRepository.cs b/src/Interfaces/Internals/IChangeLogItemRepository.cs similarity index 100% rename from AzureDevopsTracker/Interfaces/Internals/IChangeLogItemRepository.cs rename to src/Interfaces/Internals/IChangeLogItemRepository.cs diff --git a/AzureDevopsTracker/Interfaces/Internals/IChangeLogRepository.cs b/src/Interfaces/Internals/IChangeLogRepository.cs similarity index 86% rename from AzureDevopsTracker/Interfaces/Internals/IChangeLogRepository.cs rename to src/Interfaces/Internals/IChangeLogRepository.cs index d1d5e87..07a8e15 100644 --- a/AzureDevopsTracker/Interfaces/Internals/IChangeLogRepository.cs +++ b/src/Interfaces/Internals/IChangeLogRepository.cs @@ -1,5 +1,4 @@ using AzureDevopsTracker.Entities; -using System.Collections.Generic; namespace AzureDevopsTracker.Interfaces.Internals { diff --git a/AzureDevopsTracker/Interfaces/Internals/IRepository.cs b/src/Interfaces/Internals/IRepository.cs similarity index 100% rename from AzureDevopsTracker/Interfaces/Internals/IRepository.cs rename to src/Interfaces/Internals/IRepository.cs diff --git a/AzureDevopsTracker/Interfaces/Internals/IWorkItemRepository.cs b/src/Interfaces/Internals/IWorkItemRepository.cs similarity index 100% rename from AzureDevopsTracker/Interfaces/Internals/IWorkItemRepository.cs rename to src/Interfaces/Internals/IWorkItemRepository.cs diff --git a/AzureDevopsTracker/Migrations/20210719163846_AzureDevopsStateTrackerInitial.Designer.cs b/src/Migrations/20210719163846_AzureDevopsStateTrackerInitial.Designer.cs similarity index 100% rename from AzureDevopsTracker/Migrations/20210719163846_AzureDevopsStateTrackerInitial.Designer.cs rename to src/Migrations/20210719163846_AzureDevopsStateTrackerInitial.Designer.cs diff --git a/AzureDevopsTracker/Migrations/20210719163846_AzureDevopsStateTrackerInitial.cs b/src/Migrations/20210719163846_AzureDevopsStateTrackerInitial.cs similarity index 99% rename from AzureDevopsTracker/Migrations/20210719163846_AzureDevopsStateTrackerInitial.cs rename to src/Migrations/20210719163846_AzureDevopsStateTrackerInitial.cs index 60017e3..704ad44 100644 --- a/AzureDevopsTracker/Migrations/20210719163846_AzureDevopsStateTrackerInitial.cs +++ b/src/Migrations/20210719163846_AzureDevopsStateTrackerInitial.cs @@ -1,6 +1,6 @@ -using System; -using AzureDevopsTracker.Data; +using AzureDevopsTracker.Data; using Microsoft.EntityFrameworkCore.Migrations; +using System; namespace AzureDevopsTracker.Migrations { diff --git a/AzureDevopsTracker/Migrations/20210720105645_FunctionToTimeInitial.Designer.cs b/src/Migrations/20210720105645_FunctionToTimeInitial.Designer.cs similarity index 100% rename from AzureDevopsTracker/Migrations/20210720105645_FunctionToTimeInitial.Designer.cs rename to src/Migrations/20210720105645_FunctionToTimeInitial.Designer.cs diff --git a/AzureDevopsTracker/Migrations/20210720105645_FunctionToTimeInitial.cs b/src/Migrations/20210720105645_FunctionToTimeInitial.cs similarity index 95% rename from AzureDevopsTracker/Migrations/20210720105645_FunctionToTimeInitial.cs rename to src/Migrations/20210720105645_FunctionToTimeInitial.cs index 51dce04..c2c0375 100644 --- a/AzureDevopsTracker/Migrations/20210720105645_FunctionToTimeInitial.cs +++ b/src/Migrations/20210720105645_FunctionToTimeInitial.cs @@ -1,5 +1,4 @@ -using AzureDevopsTracker.Data; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; namespace AzureDevopsTracker.Migrations { diff --git a/AzureDevopsTracker/Migrations/20210831213210_UpdatingColumns.Designer.cs b/src/Migrations/20210831213210_UpdatingColumns.Designer.cs similarity index 100% rename from AzureDevopsTracker/Migrations/20210831213210_UpdatingColumns.Designer.cs rename to src/Migrations/20210831213210_UpdatingColumns.Designer.cs diff --git a/AzureDevopsTracker/Migrations/20210831213210_UpdatingColumns.cs b/src/Migrations/20210831213210_UpdatingColumns.cs similarity index 100% rename from AzureDevopsTracker/Migrations/20210831213210_UpdatingColumns.cs rename to src/Migrations/20210831213210_UpdatingColumns.cs diff --git a/AzureDevopsTracker/Migrations/20210831213948_UpdatingCustomColumn.Designer.cs b/src/Migrations/20210831213948_UpdatingCustomColumn.Designer.cs similarity index 100% rename from AzureDevopsTracker/Migrations/20210831213948_UpdatingCustomColumn.Designer.cs rename to src/Migrations/20210831213948_UpdatingCustomColumn.Designer.cs diff --git a/AzureDevopsTracker/Migrations/20210831213948_UpdatingCustomColumn.cs b/src/Migrations/20210831213948_UpdatingCustomColumn.cs similarity index 100% rename from AzureDevopsTracker/Migrations/20210831213948_UpdatingCustomColumn.cs rename to src/Migrations/20210831213948_UpdatingCustomColumn.cs diff --git a/AzureDevopsTracker/Migrations/20211213213716_Adding_ChangeLog.Designer.cs b/src/Migrations/20211213213716_Adding_ChangeLog.Designer.cs similarity index 100% rename from AzureDevopsTracker/Migrations/20211213213716_Adding_ChangeLog.Designer.cs rename to src/Migrations/20211213213716_Adding_ChangeLog.Designer.cs diff --git a/AzureDevopsTracker/Migrations/20211213213716_Adding_ChangeLog.cs b/src/Migrations/20211213213716_Adding_ChangeLog.cs similarity index 98% rename from AzureDevopsTracker/Migrations/20211213213716_Adding_ChangeLog.cs rename to src/Migrations/20211213213716_Adding_ChangeLog.cs index c099cd9..58dc8bc 100644 --- a/AzureDevopsTracker/Migrations/20211213213716_Adding_ChangeLog.cs +++ b/src/Migrations/20211213213716_Adding_ChangeLog.cs @@ -1,6 +1,6 @@ -using System; -using AzureDevopsTracker.Data; +using AzureDevopsTracker.Data; using Microsoft.EntityFrameworkCore.Migrations; +using System; namespace AzureDevopsTracker.Migrations { diff --git a/AzureDevopsTracker/Migrations/20211220212121_AddField_Number.Designer.cs b/src/Migrations/20211220212121_AddField_Number.Designer.cs similarity index 100% rename from AzureDevopsTracker/Migrations/20211220212121_AddField_Number.Designer.cs rename to src/Migrations/20211220212121_AddField_Number.Designer.cs diff --git a/AzureDevopsTracker/Migrations/20211220212121_AddField_Number.cs b/src/Migrations/20211220212121_AddField_Number.cs similarity index 100% rename from AzureDevopsTracker/Migrations/20211220212121_AddField_Number.cs rename to src/Migrations/20211220212121_AddField_Number.cs diff --git a/AzureDevopsTracker/Migrations/20220607220158_WorkItem_AddDeleted.Designer.cs b/src/Migrations/20220607220158_WorkItem_AddDeleted.Designer.cs similarity index 100% rename from AzureDevopsTracker/Migrations/20220607220158_WorkItem_AddDeleted.Designer.cs rename to src/Migrations/20220607220158_WorkItem_AddDeleted.Designer.cs diff --git a/AzureDevopsTracker/Migrations/20220607220158_WorkItem_AddDeleted.cs b/src/Migrations/20220607220158_WorkItem_AddDeleted.cs similarity index 100% rename from AzureDevopsTracker/Migrations/20220607220158_WorkItem_AddDeleted.cs rename to src/Migrations/20220607220158_WorkItem_AddDeleted.cs diff --git a/AzureDevopsTracker/Migrations/20220621170433_CustomFields.Designer.cs b/src/Migrations/20220621170433_CustomFields.Designer.cs similarity index 100% rename from AzureDevopsTracker/Migrations/20220621170433_CustomFields.Designer.cs rename to src/Migrations/20220621170433_CustomFields.Designer.cs diff --git a/AzureDevopsTracker/Migrations/20220621170433_CustomFields.cs b/src/Migrations/20220621170433_CustomFields.cs similarity index 100% rename from AzureDevopsTracker/Migrations/20220621170433_CustomFields.cs rename to src/Migrations/20220621170433_CustomFields.cs diff --git a/AzureDevopsTracker/Migrations/AzureDevopsStateTrackerContextModelSnapshot.cs b/src/Migrations/AzureDevopsStateTrackerContextModelSnapshot.cs similarity index 100% rename from AzureDevopsTracker/Migrations/AzureDevopsStateTrackerContextModelSnapshot.cs rename to src/Migrations/AzureDevopsStateTrackerContextModelSnapshot.cs diff --git a/AzureDevopsTracker/Services/AzureDevopsTrackerService.cs b/src/Services/AzureDevopsTrackerService.cs similarity index 100% rename from AzureDevopsTracker/Services/AzureDevopsTrackerService.cs rename to src/Services/AzureDevopsTrackerService.cs diff --git a/AzureDevopsTracker/Services/ChangeLogService.cs b/src/Services/ChangeLogService.cs similarity index 95% rename from AzureDevopsTracker/Services/ChangeLogService.cs rename to src/Services/ChangeLogService.cs index dce4a73..baef4fa 100644 --- a/AzureDevopsTracker/Services/ChangeLogService.cs +++ b/src/Services/ChangeLogService.cs @@ -18,7 +18,7 @@ public class ChangeLogService : IChangeLogService public ChangeLogService( IChangeLogItemRepository changeLogItemRepository, IChangeLogRepository changeLogRepository, - IConfiguration configuration, + IConfiguration configuration, MessageIntegration messageIntegration) { _changeLogItemRepository = changeLogItemRepository; @@ -50,7 +50,7 @@ public string SendToMessengers(ChangeLog changeLog) { _messageIntegration.Send(changeLog); - return $"The ChangeLog { changeLog.Number } was released."; + return $"The ChangeLog {changeLog.Number} was released."; } private ChangeLog CreateChangeLog() diff --git a/AzureDevopsTracker/Statics/ConfigurationStatics.cs b/src/Statics/ConfigurationStatics.cs similarity index 57% rename from AzureDevopsTracker/Statics/ConfigurationStatics.cs rename to src/Statics/ConfigurationStatics.cs index a39d50d..92f1a1b 100644 --- a/AzureDevopsTracker/Statics/ConfigurationStatics.cs +++ b/src/Statics/ConfigurationStatics.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace AzureDevopsTracker.Statics +namespace AzureDevopsTracker.Statics { internal class ConfigurationStatics { diff --git a/AzureDevopsTracker/Statics/WorkItemStatics.cs b/src/Statics/WorkItemStatics.cs similarity index 100% rename from AzureDevopsTracker/Statics/WorkItemStatics.cs rename to src/Statics/WorkItemStatics.cs diff --git a/AzureDevopsTracker/adt_icon.png b/src/adt_icon.png similarity index 100% rename from AzureDevopsTracker/adt_icon.png rename to src/adt_icon.png