Exemplo n.º 1
0
        public void RemoveOperationByNameThrowsWhenAmbiguous()
        {
            // Arrange
            // Act
            ODataModelBuilder builder = new ODataModelBuilder();

            ActionConfiguration action1 = builder.Action("Format");
            ActionConfiguration action2 = builder.Action("Format");

            action2.Parameter <int>("SegmentSize");

            Assert.Throws <InvalidOperationException>(() =>
            {
                builder.RemoveOperation("Format");
            });
        }