示例#1
0
        public static TwoSheetsWorkbook Setup()
        {
            var model = new TwoSheetsWorkbook();

            model.FirstSheet  = SimpleSheet.Setup();
            model.SecondSheet = SheetWithTwoComplexCollections.Setup();

            return(model);
        }
示例#2
0
        public static SimpleSheet Setup()
        {
            var obj = new SimpleSheet
            {
                Number = DateTime.Now.Millisecond,
                Text   = Guid.NewGuid().ToString(),
                Logic  = (DateTime.Now.Millisecond % 2) == 0
            };

            CollectionItem.Generate(10, obj.Items);

            return(obj);
        }