Skip to content

Commit

Permalink
Restructure (#1)
Browse files Browse the repository at this point in the history
* initial readme and fix appveyor to only deploy on tags

* fix appveyor file

* Remove console app from solution

* start adding in files to same project. structuring by directory

* Built and ran unit tests with restructured project
  • Loading branch information
tbarlow12 committed Nov 17, 2018
1 parent b57b877 commit 7be8479
Show file tree
Hide file tree
Showing 67 changed files with 2,666 additions and 20 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# task-board-assistant

Create policies to automate the management of your task board.

## Platforms
- [x] [Trello](https://github.com/task-board-assistant/task-board-assistant-trello)
- [ ] GitHub
- [ ] Jira
- [ ] Azure DevOps (VSTS)
- [ ] Microsoft Project
- [ ] Wrike
- [ ] Asana
- [ ] MeisterTask

## Contribution Guidelines
- Fork project, name branches with `short-feature-name`
- Master must **always** be shippable
- Commit messages must be clear and concise
- Commits will be squashed upon checking into master
- Code changes must:
- Link back to GitHub issues (`Fixes issue #x` in comment)
- Pass all unit tests
- Contain unit tests for new functionality
6 changes: 6 additions & 0 deletions TaskBoardAssistant.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ VisualStudioVersion = 15.0.27428.2011
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TaskBoardAssistant", "TaskBoardAssistant\TaskBoardAssistant.csproj", "{A12E26D9-3E39-43E8-942B-1425A8AA0932}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTests", "UnitTests\UnitTests.csproj", "{5DD0BA69-BB47-4F02-8D24-825B599E7F4A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -15,6 +17,10 @@ Global
{A12E26D9-3E39-43E8-942B-1425A8AA0932}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A12E26D9-3E39-43E8-942B-1425A8AA0932}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A12E26D9-3E39-43E8-942B-1425A8AA0932}.Release|Any CPU.Build.0 = Release|Any CPU
{5DD0BA69-BB47-4F02-8D24-825B599E7F4A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5DD0BA69-BB47-4F02-8D24-825B599E7F4A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5DD0BA69-BB47-4F02-8D24-825B599E7F4A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5DD0BA69-BB47-4F02-8D24-825B599E7F4A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
47 changes: 47 additions & 0 deletions TaskBoardAssistant/Adapters/Simulator/FactorySimulator.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
using TaskBoardAssistant.Adapters.Simulators.Services;
using TaskBoardAssistant.Core.Services.Resources;
using TaskBoardAssistant.Core;
using TaskBoardAssistant.Core.Models;

namespace TaskBoardAssistant.Adapters.Simulators
{
public class FactorySimulator : ITaskBoardFactory
{
public BoardService GetBoardService()
{
return new BoardServiceSimulator();
}

public CardService GetCardService()
{
return new CardServiceSimulator();
}

public LabelService GetLabelService()
{
return new LabelServiceSimulator();
}

public ListService GetListService()
{
return new ListServiceSimulator();
}

public ResourceService GetResourceService(ResourceType type)
{
switch (type)
{
case ResourceType.Board:
return GetBoardService();
case ResourceType.Card:
return GetCardService();
case ResourceType.List:
return GetListService();
case ResourceType.Label:
return GetLabelService();
default:
throw new System.Exception("Invalid Resource type");
}
}
}
}
40 changes: 40 additions & 0 deletions TaskBoardAssistant/Adapters/Simulator/Models/BoardSimulator.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using TaskBoardAssistant.Core.Models.Resources;

namespace TaskBoardAssistant.Adapters.Simulators.Models
{
class BoardSimulator : ITaskBoard
{
public IEnumerable<ITaskList> Lists => throw new NotImplementedException();

public IEnumerable<ITaskBoardMember> Members => throw new NotImplementedException();

public bool IsOpen { get; set; }

public string Id => throw new NotImplementedException();

public string Name { get; set ; }

public void Close()
{
throw new NotImplementedException();
}

public void Open()
{
throw new NotImplementedException();
}

public Task Rename(string newName)
{
throw new NotImplementedException();
}

void ITaskResource.Rename(string newName)
{
throw new NotImplementedException();
}
}
}
10 changes: 10 additions & 0 deletions TaskBoardAssistant/Adapters/Simulator/Models/CardSimulator.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace TaskBoardAssistant.Adapters.Simulators.Models
{
class CardSimulator
{
}
}
10 changes: 10 additions & 0 deletions TaskBoardAssistant/Adapters/Simulator/Models/LabelSimulator.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace TaskBoardAssistant.Adapters.Simulators.Models
{
class LabelSimulator
{
}
}
10 changes: 10 additions & 0 deletions TaskBoardAssistant/Adapters/Simulator/Models/ListSimulator.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace TaskBoardAssistant.Adapters.Simulators.Models
{
class ListSimulator
{
}
}
10 changes: 10 additions & 0 deletions TaskBoardAssistant/Adapters/Simulator/Models/MemberSimulator.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace TaskBoardAssistant.Adapters.Simulators.Models
{
class MemberSimulator
{
}
}
10 changes: 10 additions & 0 deletions TaskBoardAssistant/Adapters/Simulator/Models/ResourceSimulator.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace TaskBoardAssistant.Adapters.Simulators.Models
{
class ResourceSimulator
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using TaskBoardAssistant.Core.Models.Resources;
using TaskBoardAssistant.Core.Services.Resources;
using TaskBoardAssistant.Adapters.Simulators.Models;

namespace TaskBoardAssistant.Adapters.Simulators.Services
{
public class BoardServiceSimulator : BoardService
{
private IEnumerable<ITaskResource> boards;
public BoardServiceSimulator()
{
boards = new List<BoardSimulator>
{
new BoardSimulator
{
Name = "Test Board 1",
IsOpen = true
},
new BoardSimulator
{
Name = "Test Board 2",
IsOpen = true
},
new BoardSimulator
{
Name = "Test Board 3",
IsOpen = false
}
};
}
public override Task CommitResources()
{
throw new NotImplementedException();
}

public override Task<ITaskResource> GetById(string id)
{
throw new NotImplementedException();
}

public override ITaskBoard GetByName(string name)
{
throw new NotImplementedException();
}

public override Task<IEnumerable<ITaskResource>> GetResources(IEnumerable<ITaskResource> parents = null)
{
return Task.FromResult(boards);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using TaskBoardAssistant.Core.Models.Resources;
using TaskBoardAssistant.Core.Services.Resources;

namespace TaskBoardAssistant.Adapters.Simulators.Services
{
class CardServiceSimulator : CardService
{
public override Task CommitResources()
{
throw new NotImplementedException();
}

public override Task<ITaskResource> GetById(string id)
{
throw new NotImplementedException();
}

public override Task<IEnumerable<ITaskResource>> GetResources(IEnumerable<ITaskResource> parents = null)
{
throw new NotImplementedException();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using TaskBoardAssistant.Core.Models.Resources;
using TaskBoardAssistant.Core.Services.Resources;

namespace TaskBoardAssistant.Adapters.Simulators.Services
{
class LabelServiceSimulator : LabelService
{
public override Task CommitResources()
{
throw new NotImplementedException();
}

public override Task<ITaskResource> GetById(string id)
{
throw new NotImplementedException();
}

public override Task<IEnumerable<ITaskResource>> GetResources(IEnumerable<ITaskResource> parents = null)
{
throw new NotImplementedException();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using TaskBoardAssistant.Core.Models.Resources;
using TaskBoardAssistant.Core.Services.Resources;

namespace TaskBoardAssistant.Adapters.Simulators.Services
{
class ListServiceSimulator : ListService
{
public override Task CommitResources()
{
throw new NotImplementedException();
}

public override Task<ITaskResource> GetById(string id)
{
throw new NotImplementedException();
}

public override Task<IEnumerable<ITaskResource>> GetResources(IEnumerable<ITaskResource> parents = null)
{
throw new NotImplementedException();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Text;
using TaskBoardAssistant.Core.Services;

namespace TaskBoardAssistant.Adapters.Simulators.Services
{
class MemberServiceSimulator
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using TaskBoardAssistant.Core.Models;
using TaskBoardAssistant.Core.Models.Resources;
using TaskBoardAssistant.Core.Services.Resources;

namespace TaskBoardAssistant.Adapters.Simulators.Services
{
class ResourceServiceSimulator : ResourceService
{
public override Task CommitResources()
{
throw new NotImplementedException();
}

public override Task<ITaskResource> GetById(string id)
{
throw new NotImplementedException();
}

public override Task<IEnumerable<ITaskResource>> GetResources(IEnumerable<ITaskResource> parents = null)
{
throw new NotImplementedException();
}

public override Task<IEnumerable<ITaskResource>> PerformAction(IEnumerable<ITaskResource> resources, BaseAction action)
{
throw new NotImplementedException();
}

public override bool SatisfiesFilter(ITaskResource resource, TaskBoardResourceFilter filter)
{
throw new NotImplementedException();
}
}
}
Loading

0 comments on commit 7be8479

Please sign in to comment.