public void TabEntityContextInits(string tabEntityId) { var tabEntityContext = new TabEntityContext() { TabEntityId = tabEntityId }; Assert.NotNull(tabEntityContext); Assert.IsType <TabEntityContext>(tabEntityContext); Assert.Equal(tabEntityId, tabEntityContext.TabEntityId); }
public void TabRequestInits(TabEntityContext tabEntityContext, TabContext tabContext, string state) { var tabRequest = new TabRequest() { TabEntityContext = tabEntityContext, Context = tabContext, State = state, }; Assert.NotNull(tabRequest); Assert.IsType <TabRequest>(tabRequest); Assert.Equal(tabEntityContext, tabRequest.TabEntityContext); Assert.Equal(tabContext, tabRequest.Context); Assert.Equal(state, tabRequest.State); }
public void TabSubmitInits(TabEntityContext tabEntityContext, TabContext tabContext, TabSubmitData tabSubmitData) { var submit = new TabSubmit() { TabEntityContext = tabEntityContext, Context = tabContext, Data = tabSubmitData, }; Assert.NotNull(submit); Assert.IsType <TabSubmit>(submit); Assert.Equal(tabEntityContext, submit.TabEntityContext); Assert.Equal(tabContext, submit.Context); Assert.Equal(tabSubmitData, submit.Data); }
public void TaskModuleRequestInits() { var data = new JObject() { { "key", "value" } }; var context = new TaskModuleRequestContext(); var tabEntityContext = new TabEntityContext(); var request = new TaskModuleRequest(data, context) { TabEntityContext = tabEntityContext }; Assert.NotNull(request); Assert.IsType <TaskModuleRequest>(request); Assert.Equal(data, request.Data); Assert.Equal(context, request.Context); Assert.Equal(tabEntityContext, request.TabEntityContext); }