class accumulate tests/console nonetheless asp.net application
i have rudimentary interface:
public interface ivisitorslogcontroller
{
list<visitorslog> getvisitorslog();
int getuniquesubscriberscount();
int getvisitorscount();
twine getvisitorssummary();
}
the category visitorslogcontroller implements interface.
from console concentration testfixture - problem - console/test tie accumulate perfectly.
however, an asp.net web site (not application) same fortitude formula code behind
private ivisitorslogcontroller ctl;
protected int getuniquememberscount()
{
ctl = new visitorslogcontroller();
relapse ctl.getuniquesubscriberscount();
}
the compiler throws exception:
error 1 'websitebusinessrules.interfaces.ivisitorslogcontroller'
does enclose construction for
'getuniquesubscriberscount' no
progression method
'getuniquesubscriberscount' accepting
initial justification type
'websitebusinessrules.interfaces.ivisitorslogcontroller'
found (are blank a
controlling gauge an assembly
reference?)
yet formula same file:
stable stationary int getvisitorscount()
{
relapse visitorslogcontroller.instance.getvisitorscount(datetime.today);
}
the compiler compiles lines but complaining. fact i supplement anything new interface compiler complains perplexing accumulate asp.net page.
it can't blank controlling gauge public anxiety differently both methods fail.
this pulling me nuts!
any thoughts please?
thanks,
jeremy
Comments
Post a Comment