-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
Showing
67 changed files
with
2,666 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
40
TaskBoardAssistant/Adapters/Simulator/Models/BoardSimulator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
10
TaskBoardAssistant/Adapters/Simulator/Models/CardSimulator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
10
TaskBoardAssistant/Adapters/Simulator/Models/LabelSimulator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
10
TaskBoardAssistant/Adapters/Simulator/Models/ListSimulator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
10
TaskBoardAssistant/Adapters/Simulator/Models/MemberSimulator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
10
TaskBoardAssistant/Adapters/Simulator/Models/ResourceSimulator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
{ | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
TaskBoardAssistant/Adapters/Simulator/Services/BoardServiceSimulator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
TaskBoardAssistant/Adapters/Simulator/Services/CardServiceSimulator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
TaskBoardAssistant/Adapters/Simulator/Services/LabelServiceSimulator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
TaskBoardAssistant/Adapters/Simulator/Services/ListServiceSimulator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
TaskBoardAssistant/Adapters/Simulator/Services/MemberServiceSimulator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
{ | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
TaskBoardAssistant/Adapters/Simulator/Services/ResourceServiceSimulator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} | ||
} |
Oops, something went wrong.