public void EditDisciplineFunctionTest_ShouldBeSuccess()
        {
            var firstDiscipline = new DisciplineExtendedProxy {
                DisciplineName = "firstNameOfDiscipline"
            };
            var secondDiscipline = new DisciplineExtendedProxy {
                DisciplineName = "secondNameOfDiscipline"
            };

            RunServer(new EditDisciplineFunction(DatabaseAuthorizer, databaseDisciplineEditor));
            SendRequest("EditDiscipline", GetDefaultParameters(), Tuple.Create(firstDiscipline, secondDiscipline).ToJson());

            A.CallTo(() => databaseDisciplineEditor.Edit(firstDiscipline, secondDiscipline)).MustHaveHappened(Repeated.Exactly.Once);
        }
        protected override void Run(NameValues parameters, byte[] requestBody)
        {
            var tupleDisciplines = requestBody.FromJson <Tuple <DisciplineExtendedProxy, DisciplineExtendedProxy> >();

            databaseDisciplineEditor.Edit(tupleDisciplines.Item1, tupleDisciplines.Item2);
        }