-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
138 changed files
with
2,451 additions
and
2,009 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 |
---|---|---|
|
@@ -9,7 +9,7 @@ public class ElementCellTests | |
[TestMethod] | ||
public void NewElementCell_ShouldCreate() | ||
{ | ||
var user = new User("User"); | ||
var user = new User("User", "[email protected]"); | ||
var newElement = new ResourcePool(user, "CMRP") | ||
.AddElement("Element"); | ||
|
||
|
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ public class ElementFieldIndexTests | |
[TestMethod] | ||
public void NewElementFieldIndex_ShouldCreate() | ||
{ | ||
var user = new User("User"); | ||
var user = new User("User", "[email protected]"); | ||
new ResourcePool(user, "CMRP") | ||
.AddElement("Element") | ||
.AddField("Field", ElementFieldDataType.Boolean, true) | ||
|
@@ -21,7 +21,7 @@ public void NewElementFieldIndex_ShouldCreate() | |
[ExpectedException(typeof(ArgumentNullOrDefaultException))] | ||
public void NewElementFieldIndexWithInvalidConstructor_Exception() | ||
{ | ||
var user = new User("User"); | ||
var user = new User("User", "[email protected]"); | ||
new ResourcePool(user, "CMRP") | ||
.AddElement("Element") | ||
.AddField("Field", ElementFieldDataType.String) | ||
|
@@ -32,7 +32,7 @@ public void NewElementFieldIndexWithInvalidConstructor_Exception() | |
[ExpectedException(typeof(ArgumentException))] | ||
public void NewElementFieldIndexOnStringType_Exception() | ||
{ | ||
var user = new User("User"); | ||
var user = new User("User", "[email protected]"); | ||
new ResourcePool(user, "CMRP") | ||
.AddElement("Element") | ||
.AddField("Field", ElementFieldDataType.String) | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ public class ElementFieldTests | |
[TestMethod] | ||
public void NewElementField_ShouldCreate() | ||
{ | ||
var user = new User("User"); | ||
var user = new User("User", "[email protected]"); | ||
new ResourcePool(user, "CMRP") | ||
.AddElement("Element") | ||
.AddField("Field", ElementFieldDataType.String); | ||
|
@@ -19,7 +19,7 @@ public void NewElementField_ShouldCreate() | |
[ExpectedException(typeof(ArgumentException))] | ||
public void NewElementWithInvalidConstructor_Exception() | ||
{ | ||
var user = new User("User"); | ||
var user = new User("User", "[email protected]"); | ||
new ResourcePool(user, "CMRP") | ||
.AddElement("Element") | ||
.AddField("Field", ElementFieldDataType.Boolean); | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ public class ElementItemTests | |
[TestMethod] | ||
public void NewElementItem_ShouldCreate() | ||
{ | ||
var user = new User("User"); | ||
var user = new User("User", "[email protected]"); | ||
new ResourcePool(user, "CMRP") | ||
.AddElement("Element") | ||
.AddItem("Item"); | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ public class ElementTests | |
[TestMethod] | ||
public void NewElement_ShouldCreate() | ||
{ | ||
var user = new User("User"); | ||
var user = new User("User", "[email protected]"); | ||
new ResourcePool(user, "CMRP") | ||
.AddElement("Element"); | ||
} | ||
|
@@ -18,7 +18,7 @@ public void NewElement_ShouldCreate() | |
public void AddField_SortOrder_ShouldCalculate() | ||
{ | ||
// Arrange | ||
var user = new User("User"); | ||
var user = new User("User", "[email protected]"); | ||
var element = new ResourcePool(user, "CMRP") | ||
.AddElement("Element"); | ||
|
||
|
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ public class ResourcePoolTests | |
public void NewResourcePool_ShouldCreate() | ||
{ | ||
// Arrange + act | ||
var user = new User("User"); | ||
var user = new User("User", "[email protected]"); | ||
new ResourcePool(user, "Default"); | ||
} | ||
} | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ public class UserElementCellTests | |
[TestMethod] | ||
public void NewUserElementCell_ShouldCreate() | ||
{ | ||
var newUser = new User("Email"); | ||
var newUser = new User("User", "[email protected]"); | ||
|
||
var newElement = new ResourcePool(newUser, "CMRP") | ||
.AddElement("Element"); | ||
|
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 |
---|---|---|
|
@@ -9,8 +9,8 @@ public class UserElementFieldIndexTests | |
[TestMethod] | ||
public void NewUserElementFieldIndex_ShouldCreate() | ||
{ | ||
var user = new User("Email"); | ||
var user = new User("User", "[email protected]"); | ||
|
||
var resourcePool = new ResourcePool(user, "CMRP"); | ||
|
||
var newIndex = resourcePool | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ public class UserResourcePoolTests | |
[TestMethod] | ||
public void NewUserResourcePool_ShouldCreate() | ||
{ | ||
var user = new User("Email"); | ||
var user = new User("User", "[email protected]"); | ||
var resourcePool = new ResourcePool(user, "CMRP") | ||
.AddUserResourcePool(user, 0); | ||
} | ||
|
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,28 +1,19 @@ | ||
using forCrowd.WealthEconomy.BusinessObjects.Attributes; | ||
using System; | ||
using System.ComponentModel.DataAnnotations; | ||
using System.Security.Permissions; | ||
|
||
namespace forCrowd.WealthEconomy.BusinessObjects | ||
namespace forCrowd.WealthEconomy.BusinessObjects | ||
{ | ||
using System; | ||
using System.ComponentModel.DataAnnotations; | ||
using System.Security.Permissions; | ||
|
||
[PrincipalPermission(SecurityAction.Demand, Authenticated = false)] | ||
public abstract class BaseEntity : IEntity | ||
{ | ||
[DisplayOnListView(false)] | ||
[DisplayOnEditView(false)] | ||
public DateTime CreatedOn { get; set; } | ||
|
||
[DisplayOnListView(false)] | ||
[DisplayOnEditView(false)] | ||
public DateTime ModifiedOn { get; set; } | ||
|
||
[DisplayOnListView(false)] | ||
[DisplayOnEditView(false)] | ||
public Nullable<DateTime> DeletedOn { get; set; } | ||
public DateTime? DeletedOn { get; set; } | ||
|
||
[Timestamp] | ||
[DisplayOnListView(false)] | ||
[DisplayOnEditView(false)] | ||
public byte[] RowVersion { get; set; } | ||
} | ||
} |
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
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
Oops, something went wrong.