private static void TestEFOperationTypeService() { string connectionString = GetConnectionString("SULMAR-PC", "AdventureWorks", applicationName: "Santander"); SantanderContext context = new SantanderContext(connectionString); IOperationTypeService operationTypeService = new EFOperationTypeService(context); OperationType operationType = operationTypeService.Get(1); }
private static void AddOperationTypeTest() { string connectionString = GetConnectionString("SULMAR-PC", "AdventureWorks", applicationName: "Santander"); SantanderContext context = new SantanderContext(connectionString); IOperationTypeService operationTypeService = new EFOperationTypeService(context); OperationType operationType = new OperationType { Id = 4, Name = "Operacja 4" }; operationTypeService.Add(operationType); }