Exemple #1
0
        public Notification Execute(ExecutionArguments executionArguments)
        {
            var category = new TaxReportingCategory
            {
                Name = executionArguments.Args[0],
            };

            Statement statement = executionArguments.Statement;

            statement.TaxReportingCategories.Add(category);

            return(Notification.InfoFor(SuccessMessageText, typeof(TaxReportingCategory).GetSingularUIDescription()));
        }
                public void Should_return_true()
                {
                    var alpha = new TaxReportingCategory
                    {
                        Name = "foo",
                    };
                    var beta = new TaxReportingCategory
                    {
                        Name = "bar"
                    };

                    (alpha != beta).ShouldBeTrue();
                }
                public void Should_return_false()
                {
                    var alpha = new TaxReportingCategory
                    {
                        Name = "foo",
                    };
                    var beta = new TaxReportingCategory
                    {
                        Name = "bar"
                    };

                    alpha.Equals(beta).ShouldBeFalse();
                }
                public void Should_return_true()
                {
                    var alpha = new TaxReportingCategory
                    {
                        Name = "foo",
                    };
                    var beta = new TaxReportingCategory
                    {
                        Name = "FOO"
                    };

                    alpha.Equals(beta).ShouldBeTrue();
                }
                public void Should_return_false()
                {
                    var alpha = new TaxReportingCategory
                    {
                        Name = "foo",
                    };
                    var beta = new TaxReportingCategory
                    {
                        Name = "FOO"
                    };

                    (alpha != beta).ShouldBeFalse();
                }