This file contains hidden or 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
public interface IUserGroupsView : IView | |
{ | |
void ExpandTreeView(); | |
void HideAddNewButton(); | |
void SelectItemInTreeView(HierarchicalUserGroupBindingModel userGroupModel); | |
} |
This file contains hidden or 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
public interface IUserGroupsView : IView | |
{ | |
} |
This file contains hidden or 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
public class GetAllUserGroupsResponse : Response | |
{ | |
public UserGroupDto[] UserGroups { get; set; } | |
} |
This file contains hidden or 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
public class PropertyValidation<TBindingModel> | |
where TBindingModel : BindingModel<TBindingModel> | |
{ | |
private Func<TBindingModel, bool> validationCriteria; | |
private string errorMessage; | |
private readonly string propertyName; | |
public PropertyValidation(string propertyName) | |
{ | |
this.propertyName = propertyName; |
This file contains hidden or 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
class Publisher | |
include EventPublisher | |
event :my_first_event | |
event :my_second_event | |
def trigger_first_event(args) | |
trigger :my_first_event, args | |
end | |
def trigger_second_event(arg1, arg2) |
This file contains hidden or 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
it "should know about the subscribed method for the correct event" do | |
@publisher.subscribe :first_event, method(:first_event_handler) | |
subscribed = @publisher.subscribed? :first_event, method(:first_event_handler) | |
subscribed.should == true | |
end |
This file contains hidden or 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
class Publisher | |
include EventPublisher | |
event :first_event | |
event :second_event | |
def trigger_events | |
trigger :first_event, "first event" | |
trigger :second_event, "second event" | |
end | |
end |
This file contains hidden or 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
[EnableServiceResponseCaching(Minutes = 10, Region = "Issues")] | |
public class GetUnassignedIssuesForProjectRequest : Request | |
{ | |
public Guid ProjectId { get; set; } | |
} |
This file contains hidden or 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
[EnableServiceResponseCaching(Minutes = 5)] | |
[EnableClientResponseCaching(Seconds = 30)] | |
public class ReverseStringRequest : Request | |
{ | |
public string StringToReverse { get; set; } | |
public bool Equals(ReverseStringRequest other) | |
{ | |
if (ReferenceEquals(null, other)) return false; | |
if (ReferenceEquals(this, other)) return true; |
This file contains hidden or 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
<behaviors> | |
<serviceBehaviors> | |
<behavior name="RequestProcessorBehavior"> | |
<serviceMetadata httpGetEnabled="true"/> | |
<dataContractSerializer maxItemsInObjectGraph="2147483647"/> | |
<serviceThrottling maxConcurrentCalls="500" maxConcurrentInstances="500"/> | |
</behavior> | |
</serviceBehaviors> | |
</behaviors> |