ruslan-kurchenko / asserta

First (really???) Salesforce Apex assertions library (actually, a project template at this point ;)
3 stars 0 forks source link

The base structure of the project #6

Closed ruslan-kurchenko closed 3 years ago

ruslan-kurchenko commented 3 years ago

Define the base project structure

Issue: #2

Nara7788 commented 3 years ago

@ruslan-kurchenko @kushney We need to consider the next. Sometimes we will delegate method execution to the base class, but sometimes not. When we don't, we need to access somehow actual value. There are a few ways to achieve that: 1) Add getter in the BasicAssert and then cast returned Object to proper type in classes that compose it. 2) In the constructor where we init BasicAssert and save it as a class variable, also save "actual" as a class variable.

ruslan-kurchenko commented 3 years ago

@Nara7788 Thanks. It makes totally sense! I would consider the second option - save the actual value in the constructor.