Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public void Add(GroupExtendedProxy extendedProxy)
 {
     SendRequest("AddGroup", GetDefaultParameters(), extendedProxy.ToJson());
 }