public BeingController(DataContext db, IUserNameProvider userNames, ShareStatusService shareStatus, ShareDeleter shareDeleter, FreeLimitsChecker freeLimits) : base(db, shareStatus) { Ensure.NotNull(db, "db"); Ensure.NotNull(userNames, "userNames"); Ensure.NotNull(shareStatus, "shareStatus"); Ensure.NotNull(shareDeleter, "shareDeleter"); Ensure.NotNull(freeLimits, "freeLimits"); this.db = db; this.userNames = userNames; this.shareStatus = shareStatus; this.shareDeleter = shareDeleter; this.freeLimits = freeLimits; }
public ImageController(ImageService service, DataContext dataContext, IFileStorage fileProvider, ShareStatusService shareStatus, IUserNameProvider userNames, FreeLimitsChecker freeLimits) : base(dataContext, shareStatus) { Ensure.NotNull(service, "service"); Ensure.NotNull(dataContext, "dataContext"); Ensure.NotNull(fileProvider, "fileProvider"); Ensure.NotNull(shareStatus, "shareStatus"); Ensure.NotNull(userNames, "userNames"); Ensure.NotNull(freeLimits, "freeLimits"); this.service = service; this.dataContext = dataContext; this.fileProvider = fileProvider; this.shareStatus = shareStatus; this.userNames = userNames; this.freeLimits = freeLimits; }