public void AddGroupFunctionTest_ShouldBeSuccess() { var group = new GroupExtendedProxy { GroupName = "nameOfGroup" }; RunServer(new AddGroupFunction(DatabaseAuthorizer, databaseGroupEditor)); SendRequest("AddGroup", GetDefaultParameters(), group.ToJson()); A.CallTo(() => databaseGroupEditor.Add(group)).MustHaveHappened(Repeated.Exactly.Once); }
public void Add(GroupExtendedProxy extendedProxy) { SendRequest("AddGroup", GetDefaultParameters(), extendedProxy.ToJson()); }