Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)setUp {
- [super setUp];
- self.order = [[TLSOrderEntity alloc] init];
- self.calculateVatDictionary = [[NSDictionary alloc] init];
- self.price100 = [NSNumber numberWithInteger:100];
- self.price200 = [NSNumber numberWithInteger:200];
- self.tax5 = [NSNumber numberWithFloat:5.5];
- self.tax10 = [NSNumber numberWithInteger:10];
- self.tax20 = [NSNumber numberWithInteger:20];
- }
- #import "TLSOrderLineEntity.h"
- - (void)testExample {
- TLSOrderLineEntity *line1 = [TLSOrderLineEntity createEntityLineWithName:@"PRODUIT" price:self.price100 tax:self.tax10 extraLines:nil];
- }
- #import <XCTest/XCTest.h>
- #import <UIKit/UIKit.h>
- #import "TLSOrderTaxManager.h"
- @interface TLSOrderTaxManager (Test)
- + (NSDictionary *)calculateVatForLines:(TLSOrderEntity *)order;
- @end
- @interface TLSTaxTests : XCTestCase
- @property (nonatomic, strong) TLSOrderEntity *order;
- @property (nonatomic, strong) TLSOrderLineEntity *orderLine;
- @property (nonatomic, strong) NSDictionary *calculateVatDictionary;
- @property (nonatomic, strong) NSNumber *price100;
- @property (nonatomic, strong) NSNumber *price200;
- @property (nonatomic, strong) NSNumber *tax5;
- @property (nonatomic, strong) NSNumber *tax10;
- @property (nonatomic, strong) NSNumber *tax20;
- @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement