예제 #1
0
        public void Put()
        {
            try
            {
                var controller = new OperatorController();

                string id = Guid.NewGuid().ToString().Substring(0, 16);

                controller.Put(id, new Operator()
                {
                    Login   = id,
                    IsAdmin = false,
                    Name    = "Name_" + id
                });

                Assert.IsNotNull(controller.Get(id));
            }
            catch (Exception e)
            {
                Assert.Fail(e.Message);
            }
        }